Skip to content

Commit 1440ca3

Browse files
murtukovjaviereguiluz
authored andcommitted
Update Collection.rst
The line: "personal_email: Email" contains a mistake, as every constraint name should start on a new line and with the - symbol. If I use the code sample in the yaml file, it would throw an exception: "The value Email is not an instance of Constraint in constraint Symfony\Component\Validator\Constraints\Required"
1 parent f3ef5de commit 1440ca3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

reference/constraints/Collection.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ following:
9494
profileData:
9595
- Collection:
9696
fields:
97-
personal_email: Email
97+
personal_email:
98+
- Email: ~
9899
short_bio:
99100
- NotBlank: ~
100101
- Length:

0 commit comments

Comments
 (0)