File tree Expand file tree Collapse file tree 2 files changed +0
-36
lines changed Expand file tree Collapse file tree 2 files changed +0
-36
lines changed Original file line number Diff line number Diff line change @@ -1783,11 +1783,6 @@ assertions on the request before returning the mocked response::
17831783
17841784 // ...
17851785
1786- .. versionadded :: 5.1
1787-
1788- Passing a list of callbacks to the ``MockHttpClient `` was introduced
1789- in Symfony 5.1.
1790-
17911786.. tip ::
17921787
17931788 Instead of using the first argument, you can also set the (list of)
Original file line number Diff line number Diff line change 11Cascade
22=======
33
4- .. versionadded :: 5.2
5-
6- The :class: `Symfony\\ Component\\ Validator\\ Constraints\\ Cascade ` was
7- introduced in Symfony 5.2 and requires PHP 7.4.
8-
94The Cascade constraint is used to validate a whole class, including all the
105objects that might be stored in its properties. Thanks to this constraint,
116you don't need to add the :doc: `/reference/constraints/Valid ` constraint on
@@ -27,32 +22,6 @@ constraints that are set in the child classes ``BookMetadata`` and
2722
2823.. configuration-block ::
2924
30- .. code-block :: php-annotations
31-
32- // src/Model/BookCollection.php
33- namespace App\Model;
34-
35- use App\Model\Author;
36- use App\Model\BookMetadata;
37- use Symfony\Component\Validator\Constraints as Assert;
38-
39- /**
40- * @Assert\Cascade
41- */
42- class BookCollection
43- {
44- /**
45- * @Assert\NotBlank
46- */
47- protected $name = '';
48-
49- public BookMetadata $metadata;
50-
51- public Author $author;
52-
53- // ...
54- }
55-
5625 .. code-block :: php-attributes
5726
5827 // src/Model/BookCollection.php
You can’t perform that action at this time.
0 commit comments