Skip to content

Commit 03aa3d9

Browse files
committed
minor #5957 mark deep option as deprecated (snoek09)
This PR was merged into the 2.7 branch. Discussion ---------- mark deep option as deprecated | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.7 | Fixed tickets | #5944 Commits ------- bc8293b mark deep option as deprecated
2 parents 7186d17 + bc8293b commit 03aa3d9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

reference/constraints/Valid.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ an object and all sub-objects associated with it.
99
| Applies to | :ref:`property or method <validation-property-target>` |
1010
+----------------+---------------------------------------------------------------------+
1111
| Options | - `traverse`_ |
12-
| | - `deep`_ |
12+
| | - `deep`_ (deprecated as of 2.5) |
1313
| | - `payload`_ |
1414
+----------------+---------------------------------------------------------------------+
1515
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\Valid` |
@@ -271,6 +271,12 @@ set to ``true``.
271271
deep
272272
~~~~
273273

274+
.. caution::
275+
276+
The ``deep`` option was deprecated in Symfony 2.5 and will be removed
277+
in Symfony 3.0. When traversing arrays, nested arrays are always traversed.
278+
When traversing nested objects, their traversal strategy is used.
279+
274280
**type**: ``boolean`` **default**: ``false``
275281

276282
If this constraint is applied to a property that holds an array of objects,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy