Skip to content

Commit a50bb96

Browse files
author
inso
committed
Updated Valid constraint reference
Revised PR #4351 for 2.3 branch
1 parent c10e9c1 commit a50bb96

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)