Skip to content

Commit e1af1f2

Browse files
committed
Constraints are run on $form->bindRequest(), not $form->isValid()
1 parent ba5ef6d commit e1af1f2

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)