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::
1783
1783
1784
1784
// ...
1785
1785
1786
- .. versionadded :: 5.1
1787
-
1788
- Passing a list of callbacks to the ``MockHttpClient `` was introduced
1789
- in Symfony 5.1.
1790
-
1791
1786
.. tip ::
1792
1787
1793
1788
Instead of using the first argument, you can also set the (list of)
Original file line number Diff line number Diff line change 1
1
Cascade
2
2
=======
3
3
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
-
9
4
The Cascade constraint is used to validate a whole class, including all the
10
5
objects that might be stored in its properties. Thanks to this constraint,
11
6
you 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
27
22
28
23
.. configuration-block ::
29
24
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
-
56
25
.. code-block :: php-attributes
57
26
58
27
// src/Model/BookCollection.php
You can’t perform that action at this time.
0 commit comments