[DDC-388] Private properties in @MappedSupperclass don't work Created: 03/Mar/10 Updated: 14/Apr/10 Resolved: 14/Apr/10
|Project:||Doctrine 2 - ORM|
|Reporter:||Jaka Jancar||Assignee:||Roman S. Borschel|
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?
|Comment by Roman S. Borschel [ 03/Mar/10 ]|
Yes, I think the 'inherited' key is simply not set for fields that are inherited from mapped superclasses. This needs to be fixed.
|Comment by Roman S. Borschel [ 14/Apr/10 ]|
Fixed in http://github.com/doctrine/doctrine2/commit/d4232d906e433b1fe4dd8aa85aa7a4aca3a2cf4c .