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
1010If your object takes advantage of :doc: `validation groups </validation/groups >`,
1111you'll need to specify which validation group(s) your form should use::
1212
13- $form = $this->createFormBuilder($users , array(
13+ $form = $this->createFormBuilder($user , array(
1414 'validation_groups' => array('registration'),
1515 ))->add(...);
1616
@@ -28,4 +28,7 @@ method::
2828 }
2929
3030In 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
272272instance as only argument.
273273
274274Static 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 `
276276instance as the second argument.
277277
278278.. include :: /reference/constraints/_payload-option.rst.inc
You can’t perform that action at this time.
0 commit comments