Skip to content

Commit d95afaf

Browse files
committed
minor #11760 Update Collection.rst (murtukov)
This PR was submitted for the 4.3 branch but it was merged into the 3.4 branch instead (closes #11760). Discussion ---------- 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"` <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 1440ca3 Update Collection.rst
2 parents f3ef5de + 1440ca3 commit d95afaf

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)