mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
ResolveTargetEntities causes Warning: Undefined array Key *Resolved Entity Name* #6762
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 @rothzeta on GitHub (Jun 17, 2021).
Hello,
Using doctrine 2.9.3
When using an interface as the join column class and then using a different class in a native query then the one declared in ResolveTargetEntities, I get a warning in getResult()
Before upgrading to 2.9 I didn't have this problem in fact I wasn't using ResolveTargetEntities at all and just used native queries
with no errors but since 2.9 I had to add the ResolveTargetEntities when using $rsm->addRootEntityFromClassMetadata because it now checks whether the entity in the manyToOne association exist and was throwing an error.
exemple:
doctrine.yaml
Repository
Entity