File tree 3 files changed +8
-8
lines changed
3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ you want to guarantee that some ``state`` property is *not* in a dynamic
26
26
``invalidStates `` array. First, you'd create a "getter" method::
27
27
28
28
protected $state;
29
-
29
+
30
30
protectd $invalidStates = array();
31
31
32
32
public function isStateInvalid()
@@ -55,10 +55,10 @@ method returns **false**:
55
55
56
56
class Author
57
57
{
58
- /**
58
+ /**
59
59
* @Assert\False()
60
60
*/
61
- public function isStateInvalid($messsage = "You've entered an invalid state.")
61
+ public function isStateInvalid($message = "You've entered an invalid state.")
62
62
{
63
63
// ...
64
64
}
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ add the following:
39
39
class Participant
40
40
{
41
41
/**
42
- * @Assert\Max(limit = "50" , message = "You must be 50 or under to enter.")
42
+ * @Assert\Max(limit = 50 , message = "You must be 50 or under to enter.")
43
43
*/
44
44
protected $age;
45
45
}
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ Basic Usage
27
27
properties :
28
28
firstName :
29
29
- MinLength : { limit: 3, message: Your name must have at least {{ limit}} characters. }
30
-
30
+
31
31
.. code-block :: php-annotations
32
32
33
33
// src/Acme/BlogBundle/Entity/Blog.php
@@ -37,13 +37,13 @@ Basic Usage
37
37
{
38
38
/**
39
39
* @Assert\MinLength(
40
- * limit: 3,
41
- * message: "Your name must have at least {{ limit}} characters."
40
+ * limit= 3,
41
+ * message= "Your name must have at least {{ limit}} characters."
42
42
* )
43
43
*/
44
44
protected $summary;
45
45
}
46
-
46
+
47
47
.. code-block :: xml
48
48
49
49
<!-- src/Acme/BlogBundle/Resources/config/validation.xml -->
You can’t perform that action at this time.
0 commit comments