File tree 2 files changed +10
-5
lines changed
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.
11
11
| Options | - `action `_ |
12
12
| | - `allow_extra_fields `_ |
13
13
| | - `by_reference `_ |
14
- | | - `cascade_validation `_ |
14
+ | | - `cascade_validation `_ (deprecated as of 2.8) |
15
15
| | - `compound `_ |
16
16
| | - `constraints `_ |
17
17
| | - `data `_ |
Original file line number Diff line number Diff line change 1
1
cascade_validation
2
2
~~~~~~~~~~~~~~~~~~
3
3
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
+
4
10
**type**: ``boolean`` **default**: ``false``
5
11
6
12
Set this option to ``true`` to force validation on embedded form types.
@@ -10,11 +16,10 @@ the data from ``CategoryType`` to also be validated.
10
16
11
17
.. tip::
12
18
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 > `
14
20
constraint in your model to force validation on a child object stored
15
21
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 > `.
19
24
20
25
.. include:: /reference/forms/types/options/_error_bubbling_hint.rst.inc
You can’t perform that action at this time.
0 commit comments