Skip to content

Commit

Permalink
Merge branch '2.3' into 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverryan committed Dec 26, 2013
2 parents 3945d5f + 55dbd0b commit 7c1b2c3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions reference/constraints/Valid.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
-----------

Expand Down
7 changes: 7 additions & 0 deletions reference/forms/types/options/_error_bubbling_hint.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.. tip::

By default the ``error_bubbling`` option is enabled for the
:doc:`collection Field Type </reference/forms/types/collection>`,
which passes the errors to the parent form. If you want to attach
the errors to the locations where they actually occur you have to
set ``error_bubbling`` to ``false``.
3 changes: 1 addition & 2 deletions reference/forms/types/options/cascade_validation.rst.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7c1b2c3

Please sign in to comment.