Skip to content

Commit

Permalink
bug #5608 updated validation.rst (issei-m)
Browse files Browse the repository at this point in the history
This PR was submitted for the 2.8 branch but it was merged into the 2.3 branch instead (closes #5608).

Discussion
----------

updated validation.rst

I'm not sure this change is correct but FieldError was renamed to FormError, right?

Commits
-------

74da3cf updated validation.rst
  • Loading branch information
wouterj committed Aug 12, 2015
2 parents 25bf05c + 74da3cf commit ac38b0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/validation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ The ``validator`` service can be used at any time to validate any object.
In reality, however, you'll usually work with the ``validator`` indirectly
when working with forms. Symfony's form library uses the ``validator`` service
internally to validate the underlying object after values have been submitted.
The constraint violations on the object are converted into ``FieldError``
The constraint violations on the object are converted into ``FormError``
objects that can easily be displayed with your form. The typical form submission
workflow looks like the following from inside a controller::

Expand Down

0 comments on commit ac38b0c

Please sign in to comment.