Skip to content
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

[Validator] property constraints can be added in child classes #21592

Merged
merged 2 commits into from Feb 13, 2017

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Feb 12, 2017

Q A
Branch? 2.7
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #21538, #21567
License MIT
Doc PR

This reverts the changes done in #21053 (and applies the test written by @angelk in #21538). I think trying to "fix" #15950 with the changes from #21053 was a mistake. Child classes should be able to refine validation constraints (I basically agree with @ro0NL's reasoning in #21567 (comment).

@fabpot
Copy link
Member

fabpot commented Feb 12, 2017

Looks like tests are broken.

@xabbuh
Copy link
Member Author

xabbuh commented Feb 13, 2017

tests fixed

@fabpot
Copy link
Member

fabpot commented Feb 13, 2017

Thank you @xabbuh.

@fabpot fabpot merged commit 9513a8a into symfony:2.7 Feb 13, 2017
fabpot added a commit that referenced this pull request Feb 13, 2017
…sses (angelk, xabbuh)

This PR was merged into the 2.7 branch.

Discussion
----------

[Validator] property constraints can be added in child classes

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #21538, #21567
| License       | MIT
| Doc PR        |

This reverts the changes done in #21053 (and applies the test written by @angelk in #21538). I think trying to "fix" #15950 with the changes from #21053 was a mistake. Child classes should be able to refine validation constraints (I basically agree with @ro0NL's reasoning in #21567 (comment).

Commits
-------

9513a8a property constraints can be added in child classes
a266ff7 added test for staticClassLoader in LazyLoadingMetadatafactory
@xabbuh xabbuh deleted the pr-21538 branch February 13, 2017 19:19
@ro0NL
Copy link
Contributor

ro0NL commented Feb 14, 2017

@xabbuh this reopens #15950 right?

@xabbuh
Copy link
Member Author

xabbuh commented Feb 14, 2017

@ro0NL Indeed, thanks for the reminder.

@fabpot fabpot mentioned this pull request Feb 17, 2017
This was referenced Mar 6, 2017
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.

None yet

5 participants