We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b9ca63 commit 5e32e8aCopy full SHA for 5e32e8a
book/forms.rst
@@ -1543,7 +1543,7 @@ but here's a short example::
1543
1544
// create a form, no default values, pass in the constraint option
1545
$form = $this->createFormBuilder(null, array(
1546
- 'validation_constraint' => $collectionConstraint,
+ 'constraints' => $collectionConstraint,
1547
))->add('email', 'email')
1548
// ...
1549
;
@@ -1573,7 +1573,7 @@ method to specify the option::
1573
));
1574
1575
$resolver->setDefaults(array(
1576
- 'validation_constraint' => $collectionConstraint
+ 'constraints' => $collectionConstraint
1577
1578
}
1579
0 commit comments