diff --git a/reference/constraints/Valid.rst b/reference/constraints/Valid.rst index 137a357a0f5..f5f85d1a78e 100644 --- a/reference/constraints/Valid.rst +++ b/reference/constraints/Valid.rst @@ -13,6 +13,8 @@ object and all sub-objects associated with it. | Class | :class:`Symfony\\Component\\Validator\\Constraints\\Type` | +----------------+---------------------------------------------------------------------+ +.. include:: /reference/forms/types/options/_error_bubbling_hint.rst.inc + Basic Usage ----------- diff --git a/reference/forms/types/options/_error_bubbling_hint.rst b/reference/forms/types/options/_error_bubbling_hint.rst new file mode 100644 index 00000000000..41e0ab1a98d --- /dev/null +++ b/reference/forms/types/options/_error_bubbling_hint.rst @@ -0,0 +1,7 @@ +.. tip:: + + By default the ``error_bubbling`` option is enabled for the + :doc:`collection Field Type ` + which passes the errors to the parent form. If you want to attach + the errors to the locations where they actually occure you have to + set ``error_bubbling`` to ``false``. diff --git a/reference/forms/types/options/cascade_validation.rst.inc b/reference/forms/types/options/cascade_validation.rst.inc index 60d1bd50593..f110e9087b2 100644 --- a/reference/forms/types/options/cascade_validation.rst.inc +++ b/reference/forms/types/options/cascade_validation.rst.inc @@ -11,6 +11,5 @@ the data from ``CategoryType`` to also be validated. Instead of using this option, you can also use the ``Valid`` constraint in your model to force validation on a child object stored on a property. - - +.. include:: /reference/forms/types/options/_error_bubbling_hint.rst.inc