@@ -49,7 +49,7 @@ username and the password are different only if all other validation passes
49
49
50
50
.. code-block :: yaml
51
51
52
- # src/Resources/ config/validation.yml
52
+ # config/validator/ validation.yaml
53
53
App\Entity\User :
54
54
group_sequence :
55
55
- User
@@ -67,7 +67,7 @@ username and the password are different only if all other validation passes
67
67
68
68
.. code-block :: xml
69
69
70
- <!-- src/Resources/ config/validation.xml -->
70
+ <!-- config/validator /validation.xml -->
71
71
<?xml version =" 1.0" encoding =" UTF-8" ?>
72
72
<constraint-mapping xmlns =" http://symfony.com/schema/dic/constraint-mapping"
73
73
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
@@ -145,7 +145,7 @@ You can also define a group sequence in the ``validation_groups`` form option::
145
145
use Symfony\Component\Validator\Constraints\GroupSequence;
146
146
use Symfony\Component\Form\AbstractType;
147
147
// ...
148
-
148
+
149
149
class MyType extends AbstractType
150
150
{
151
151
// ...
@@ -195,7 +195,7 @@ entity and a new constraint group called ``Premium``:
195
195
196
196
.. code-block :: yaml
197
197
198
- # src/Resources/ config/validation.yml
198
+ # config/validator/ validation.yaml
199
199
App\Entity\User :
200
200
properties :
201
201
name :
@@ -207,7 +207,7 @@ entity and a new constraint group called ``Premium``:
207
207
208
208
.. code-block :: xml
209
209
210
- <!-- src/Resources/ config/validation.xml -->
210
+ <!-- config/validator /validation.xml -->
211
211
<?xml version =" 1.0" encoding =" UTF-8" ?>
212
212
<constraint-mapping xmlns =" http://symfony.com/schema/dic/constraint-mapping"
213
213
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
@@ -308,13 +308,13 @@ provides a sequence of groups to be validated:
308
308
309
309
.. code-block :: yaml
310
310
311
- # src/Resources/ config/validation.yml
311
+ # config/validator/ validation.yaml
312
312
App\Entity\User :
313
313
group_sequence_provider : true
314
314
315
315
.. code-block :: xml
316
316
317
- <!-- src/Resources/ config/validation.xml -->
317
+ <!-- config/validator /validation.xml -->
318
318
<?xml version =" 1.0" encoding =" UTF-8" ?>
319
319
<constraint-mapping xmlns =" http://symfony.com/schema/dic/constraint-mapping"
320
320
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
0 commit comments