Skip to content

Update Collection.rst #11760

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 17, 2019
Merged

Update Collection.rst #11760

merged 1 commit into from
Jun 17, 2019

Conversation

murtukov
Copy link
Contributor

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"

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"
@javiereguiluz javiereguiluz changed the base branch from 4.3 to 3.4 June 17, 2019 08:52
@javiereguiluz
Copy link
Member

javiereguiluz commented Jun 17, 2019

@murtukov nice catch! Thanks for fixing this ... and congrats on your first Symfony Docs contribution! Note: we merged this in 3.4 and then, in the other branches automatically.

@javiereguiluz javiereguiluz merged commit 1440ca3 into symfony:3.4 Jun 17, 2019
javiereguiluz added a commit that referenced this pull request Jun 17, 2019
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants