8000 Tweaks · symfony/symfony-docs@c01f434 · GitHub
[go: up one dir, main page]

Skip to content

Commit c01f434

Browse files
committed
Tweaks
1 parent f65c7e6 commit c01f434

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

reference/constraints/Cascade.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ Cascade
66
The :class:`Symfony\\Component\\Validator\\Constraints\\Cascade` was
77
introduced in Symfony 5.2 and requires PHP 7.4.
88

9-
The Cascade constraint is used to validate a whole class. It allows to
10-
omit to add the :doc:`/reference/constraints/Valid` constraint on each
11-
child object of your class you want to validate.
9+
The Cascade constraint is used to validate a whole class, including all the
10+
objects that might be stored in its properties. Thanks to this constraint,
11+
you don't need to add the :doc:`/reference/constraints/Valid` constraint on
12+
every child object that you want to validate in your class.
1213

1314
========== ===================================================================
1415
Applies to :ref:`class <validation-class-target>`
@@ -20,7 +21,7 @@ Basic Usage
2021

2122
In the following example, the
2223
:class:`Symfony\\Component\\Validator\\Constraints\\Cascade` constraint
23-
will tell the validator to validate all fields of the class, including
24+
will tell the validator to validate all properties of the class, including
2425
constraints that are set in the child classes ``BookMetadata`` and
2526
``Author``:
2627

0 commit comments

Comments
 (0)
0