Skip to content

Commit 7c1b2c3

Browse files
committed
Merge branch '2.3' into 2.4
2 parents 3945d5f + 55dbd0b commit 7c1b2c3

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

reference/constraints/Valid.rst

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ object and all sub-objects associated with it.
1313
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\Type` |
1414
+----------------+---------------------------------------------------------------------+
1515

16+
.. include:: /reference/forms/types/options/_error_bubbling_hint.rst.inc
17+
1618
Basic Usage
1719
-----------
1820

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.. tip::
2+
3+
By default the ``error_bubbling`` option is enabled for the
4+
:doc:`collection Field Type </reference/forms/types/collection>`,
5+
which passes the errors to the parent form. If you want to attach
6+
the errors to the locations where they actually occur you have to
7+
set ``error_bubbling`` to ``false``.

reference/forms/types/options/cascade_validation.rst.inc

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,5 @@ the data from ``CategoryType`` to also be validated.
1111
Instead of using this option, you can also use the ``Valid`` constraint in
1212
your model to force validation on a child object stored on a property.
1313

14-
15-
14+
.. include:: /reference/forms/types/options/_error_bubbling_hint.rst.inc
1615

0 commit comments

Comments
 (0)