Skip to content

Commit 68a2c7b

Browse files
committed
bug #4381 Updated Valid constraint reference (inso)
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
2 parents 4dfd607 + a50bb96 commit 68a2c7b

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

reference/constraints/Valid.rst

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ object and all sub-objects associated with it.
99
| Applies to | :ref:`property or method <validation-property-target>` |
1010
+----------------+---------------------------------------------------------------------+
1111
| Options | - `traverse`_ |
12-
| | - `message`_ |
12+
| | - `deep`_ |
1313
+----------------+---------------------------------------------------------------------+
14-
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\Type` |
14+
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\Valid` |
1515
+----------------+---------------------------------------------------------------------+
1616

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

270-
message
271-
~~~~~~~
270+
deep
271+
~~~~
272272

273-
**type**: ``string`` **default**: ``This value should be true.``
273+
**type**: ``boolean`` **default**: ``false``
274274

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

0 commit comments

Comments
 (0)