Skip to content

Commit a219a4c

Browse files
committed
Merge pull request #1131 from frosas/patch-2
Constraints are run on $form->bindRequest(), not $form->isValid()
2 parents 8eebc36 + e1af1f2 commit a219a4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/forms.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1465,7 +1465,7 @@ but here's a short example::
14651465
// ...
14661466
;
14671467

1468-
Now, when you call `$form->isValid()`, the constraints setup here are run
1468+
Now, when you call `$form->bindRequest($request)`, the constraints setup here are run
14691469
against your form's data. If you're using a form class, override the ``getDefaultOptions``
14701470
method to specify the option::
14711471

0 commit comments

Comments
 (0)