Open Jean85 opened 6 days ago
Ok I've debugged the issue, that lies in \Doctrine\ORM\Mapping\Driver\ReflectionBasedDriver::isRepeatedPropertyDeclaration
:
true
, skipping the whole "double-mapping"Issue8108WithRelation
)Issue8108Base
)Any suggestion on how we should fix this?
[EDIT] In short, it seems that the issue stems from the fact that I'm having this chain of inheritance:
A
(NOT declared as an entity) with a relation / field declared on a propertyB extends A
, declared as mapped superclassC extends B
, declared as child entity of B
As reported in https://github.com/doctrine/orm/issues/8108#issuecomment-2188230072, this is a regression test for a bug that I encounter when upgrading from ORM 2 to 3. I'm not sure how this should be fixed.
[EDIT] I should add that this doesn't happen if the relation is coming from a trait instead of an abstract class.