File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 40
40
- Callback :
41
41
methods : [isAuthorValid]
42
42
43
- .. code-block :: xml
44
-
45
- <!-- src/Acme/BlogBundle/Resources/config/validation.xml -->
46
- <class name =" Acme\BlogBundle\Entity\Author" >
47
- <constraint name =" Callback" >
48
- <option name =" methods" >
49
- <value >isAuthorValid</value >
50
- </option >
51
- </constraint >
52
- </class >
53
-
54
43
.. code-block :: php-annotations
55
44
56
45
// src/Acme/BlogBundle/Entity/Author.php
63
52
{
64
53
}
65
54
55
+ .. code-block :: xml
56
+
57
+ <!-- src/Acme/BlogBundle/Resources/config/validation.xml -->
58
+ <class name =" Acme\BlogBundle\Entity\Author" >
59
+ <constraint name =" Callback" >
60
+ <option name =" methods" >
61
+ <value >isAuthorValid</value >
62
+ </option >
63
+ </constraint >
64
+ </class >
65
+
66
66
The Callback Method
67
67
-------------------
68
68
You can’t perform that action at this time.
0 commit comments