Skip to content

[Validator] override property constraints in child class #21053

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
Dec 26, 2016

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Dec 25, 2016

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

@fabpot
Copy link
Member

fabpot commented Dec 26, 2016

Thank you @xabbuh.

@fabpot fabpot merged commit 8b281fe into symfony:2.7 Dec 26, 2016
fabpot added a commit that referenced this pull request Dec 26, 2016
…xabbuh)

This PR was merged into the 2.7 branch.

Discussion
----------

[Validator] override property constraints in child class

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

Commits
-------

8b281fe override property constraints in child class
@xabbuh xabbuh deleted the issue-15950 branch December 26, 2016 12:36
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
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.

3 participants