Skip to content

Commit d0328db

Browse files
committed
minor #8780 Update without_class.rst (tabbi89)
This PR was merged into the 2.7 branch. Discussion ---------- Update without_class.rst `$form->isValid()` no validation is done here this method only returns bool flag if any errors occurred during validation or false if a form was not submitted. Validation happens when executing `handleRequest()` or `submit()`. Commits ------- b4c203e Update without_class.rst
2 parents c97aa11 + b4c203e commit d0328db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

form/without_class.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ an array.
6363
Adding Validation
6464
~~~~~~~~~~~~~~~~~
6565

66-
The only missing piece is validation. Usually, when you call ``$form->isValid()``,
66+
The only missing piece is validation. Usually, when you call ``$form->handleRequest($request)``,
6767
the object is validated by reading the constraints that you applied to that
6868
class. If your form is mapped to an object (i.e. you're using the ``data_class``
6969
option or passing an object to your form), this is almost always the approach

0 commit comments

Comments
 (0)