Skip to content

Commit

Permalink
bug #4381 Updated Valid constraint reference (inso)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.3 branch.

Discussion
----------

Updated Valid constraint reference

| Q              | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.3
| Fixed tickets |

Revised PR #4351 for 2.3 branch

Commits
-------

a50bb96 Updated Valid constraint reference
  • Loading branch information
weaverryan committed Oct 29, 2014
2 parents 4dfd607 + a50bb96 commit 68a2c7b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions reference/constraints/Valid.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ object and all sub-objects associated with it.
| Applies to | :ref:`property or method <validation-property-target>` |
+----------------+---------------------------------------------------------------------+
| Options | - `traverse`_ |
| | - `message`_ |
| | - `deep`_ |
+----------------+---------------------------------------------------------------------+
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\Type` |
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\Valid` |
+----------------+---------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_error_bubbling_hint.rst.inc
Expand Down Expand Up @@ -267,9 +267,11 @@ If this constraint is applied to a property that holds an array of objects,
then each object in that array will be validated only if this option is set
to ``true``.

message
~~~~~~~
deep
~~~~

**type**: ``string`` **default**: ``This value should be true.``
**type**: ``boolean`` **default**: ``false``

This is the message that will be shown if the value is false.
If this constraint is applied to a property that holds an array of objects,
then each object in that array will be validated recursively if this option is set
to ``true``.

0 comments on commit 68a2c7b

Please sign in to comment.