-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Deprecate overriding fields/associations inherited from other entities #10470
Conversation
I am open for suggestions regarding more precise wording. We don’t care where the field comes from, be it a trait, a mapped superclass or maybe even a transient class. Key point is that it may not be present in another entity of the same inheritance tree and be overridden for a subclass only. |
…ridden This was brought up in doctrine#8348, but seemingly forgotten to be implenented in later versions. Closes doctrine#10289.
a4ca839
to
c9b644d
Compare
How can we make sure not to forget enabling the exception after this is been merged up into 3.0? |
We have no systematic way of doing that, sadly. We will perform a |
I'm working on the merge up. While doing so, I noticed a comment similar to the one you changed, that one is in |
#10520 turns the deprecation notice into an exception in 3.0.x |
#10519 adds the check for associations. |
Turn deprecation from #10470 into an exception in 3.0.x
This was brought up in #8348, but seemingly forgotten to be implemented in later versions.
Exact reference:
https://github.com/doctrine/orm/pull/8348/files#diff-732e324167dd49e48b221477c3e0f6d7934f3eb5ec0970dbf1c06f6c7df15398R2261-R2264
Probably never really worked, because a subclass entity cannot have its fields mapped to other columns than the parent entity (just think about what that would mean for STI/JTI, for example).
Closes #10289.
Update #10519 adds the check for associations.