mirror of
https://github.com/doctrine/orm.git
synced 2026-04-29 09:23:20 +02:00
DDC-388: Private properties in @MappedSupperclass don't work #483
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Mar 3, 2010).
Jira issue originally created by user jakajancar:
All of my entites extend an abstract class Model to inherit the 'id' property and some other functionality. It has the @MappedSuperclass annotation.
If the id property is declared private to the Model class, I'll get the following exception when using entites extending it:
I haven't looked at Doctrine code, but perhaps you should be looking for the property on the class which actually has the @Column annotation?
@doctrinebot commented on GitHub (Mar 3, 2010):
@doctrinebot commented on GitHub (Mar 3, 2010):
Comment created by romanb:
Yes, I think the 'inherited' key is simply not set for fields that are inherited from mapped superclasses. This needs to be fixed.
@doctrinebot commented on GitHub (Apr 14, 2010):
Comment created by romanb:
Fixed in http://github.com/doctrine/doctrine2/commit/d4232d906e433b1fe4dd8aa85aa7a4aca3a2cf4c .
Make sure to clear the metadata cache if necessary.
@doctrinebot commented on GitHub (Apr 14, 2010):
Issue was closed with resolution "Fixed"