We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce4e4ec commit 8031c55Copy full SHA for 8031c55
reference/constraints/Collection.rst
@@ -184,29 +184,6 @@ you can do the following:
184
185
.. configuration-block::
186
187
- .. code-block:: php-attributes
188
-
189
- // src/Entity/Author.php
190
- namespace App\Entity;
191
192
- use Symfony\Component\Validator\Constraints as Assert;
193
194
- class Author
195
- {
196
- #[Assert\Collection(
197
- fields: [
198
- 'personal_email' => new Assert\Required([
199
- new Assert\NotBlank,
200
- new Assert\Email,
201
- ]),
202
- 'alternate_email' => new Assert\Optional(
203
- new Assert\Email
204
- ),
205
- ],
206
- )]
207
- protected $profileData = ['personal_email' => 'email@example.com'];
208
- }
209
210
.. code-block:: php-attributes
211
212
// src/Entity/Author.php
0 commit comments