From 7a1e101e8c9e8cd2434802b618e2d621309eab8f Mon Sep 17 00:00:00 2001 From: Alexandre Daubois Date: Mon, 6 Mar 2023 13:35:09 +0100 Subject: [PATCH] [Validator] Add `exclude` option to `Cascade` --- reference/constraints/Cascade.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/reference/constraints/Cascade.rst b/reference/constraints/Cascade.rst index 5880fdd6389..eb470fd8e31 100644 --- a/reference/constraints/Cascade.rst +++ b/reference/constraints/Cascade.rst @@ -87,4 +87,16 @@ Options The ``groups`` option is not available for this constraint. +``exclude`` +~~~~~~~~~~~ + +**type**: ``array`` | ``string`` **default**: ``null`` + +This option can be used to exclude one or more properties from the +cascade validation. + +.. versionadded:: 6.3 + + The ``exclude`` option was introduced in Symfony 6.3. + .. include:: /reference/constraints/_payload-option.rst.inc