File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ on all types for which ``form`` is the parent type.
1111| Options | - `action `_ |
1212| | - `allow_extra_fields `_ |
1313| | - `by_reference `_ |
14- | | - `cascade_validation `_ |
14+ | | - `cascade_validation `_ (deprecated as of 2.8) |
1515| | - `compound `_ |
1616| | - `constraints `_ |
1717| | - `data `_ |
Original file line number Diff line number Diff line change 11cascade_validation
22~~~~~~~~~~~~~~~~~~
33
4+ .. caution::
5+
6+ The ``cascade_validation`` option has been deprecated in Symfony 2.8 and will be removed
7+ in 3.0. Instead, use the ``Valid`` constraint in your model to cascade validation. Be aware
8+ of the fact that the ``validation_group`` option will not be considered for child forms.
9+
410**type**: ``boolean`` **default**: ``false``
511
612Set this option to ``true`` to force validation on embedded form types.
@@ -10,11 +16,10 @@ the data from ``CategoryType`` to also be validated.
1016
1117.. tip::
1218
13- Instead of using this option, it is recommended that you use the `` Valid` `
19+ Instead of using this option, it is recommended that you use the :doc:` Valid </ reference/constraints/Valid > `
1420 constraint in your model to force validation on a child object stored
1521 on a property. This cascades only the validation but not the use of
16- the ``validation_groups`` option on child forms. You can read more
17- about this in the section about
18- :ref:`Embedding a Single Object <forms-embedding-single-object>`.
22+ the :ref:`validation_groups < book-forms-validation-groups > ` option on child forms. You can read more
23+ about this in the section about :ref:`Embedding a Single Object < forms-embedding-single-object > `.
1924
2025.. include:: /reference/forms/types/options/_error_bubbling_hint.rst.inc
You can’t perform that action at this time.
0 commit comments