File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Validation Groups
10
10
If your object takes advantage of :doc: `validation groups </validation/groups >`,
11
11
you'll need to specify which validation group(s) your form should use::
12
12
13
- $form = $this->createFormBuilder($users , array(
13
+ $form = $this->createFormBuilder($user , array(
14
14
'validation_groups' => array('registration'),
15
15
))->add(...);
16
16
@@ -28,4 +28,7 @@ method::
28
28
}
29
29
30
30
In both of these cases, *only * the ``registration `` validation group will
31
- be used to validate the underlying object.
31
+ be used to validate the underlying object. To apply the ``registration ``
32
+ group *and * all constraints that are not in a group, use::
33
+
34
+ 'validation_groups' => array('Default', 'registration')
Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ Concrete callbacks receive an :class:`Symfony\\Component\\Validator\\Context\\Ex
272
272
instance as only argument.
273
273
274
274
Static or closure callbacks receive the validated object as the first argument
275
- and the :class: `Symfony\\ Component\\ Validator\\ ExecutionContextInterface `
275
+ and the :class: `Symfony\\ Component\\ Validator\\ Context \\ ExecutionContextInterface `
276
276
instance as the second argument.
277
277
278
278
.. include :: /reference/constraints/_payload-option.rst.inc
You can’t perform that action at this time.
0 commit comments