Skip to content

Commit

Permalink
fix validation_groups typos
Browse files Browse the repository at this point in the history
  • Loading branch information
craue committed Jun 2, 2015
1 parent ecd68c5 commit f4d20c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cookbook/form/dynamic_form_modification.rst
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ To suppress form validation you can use the ``POST_SUBMIT`` event and prevent
the :class:`Symfony\\Component\\Form\\Extension\\Validator\\EventListener\\ValidationListener`
from being called.

The reason for needing to do this is that even if you set ``group_validation``
The reason for needing to do this is that even if you set ``validation_groups``
to ``false`` there are still some integrity checks executed. For example
an uploaded file will still be checked to see if it is too large and the form
will still check to see if non-existing fields were submitted. To disable
Expand Down
2 changes: 1 addition & 1 deletion reference/forms/types/options/cascade_validation.rst.inc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ the data from ``CategoryType`` to also be validated.
Instead of using this option, it is recommended that you use the ``Valid``
constraint in your model to force validation on a child object stored
on a property. This cascades only the validation but not the use of
the ``validation_group`` option on child forms. You can read more
the ``validation_groups`` option on child forms. You can read more
about this in the section about
:ref:`Embedding a Single Object <forms-embedding-single-object>`.

Expand Down

0 comments on commit f4d20c3

Please sign in to comment.