Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc01f434

Browse files
committed
Tweaks
1 parentf65c7e6 commitc01f434

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 allfields of the class, including
24+
will tell the validator to validate allproperties of the class, including
2425
constraints that are set in the child classes ``BookMetadata`` and
2526
``Author``:
2627

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp