mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-1377: Doctrine doesn't understand associations from SINGLE_TABLE inheritances #1724
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 (Sep 14, 2011).
Originally assigned to: @guilhermeblanco on GitHub.
Jira issue originally created by user msilvagarcia:
Doctrine doesn't understand when a query is built from an association to a SINGLE_TABLE parent to get its successors relations.
For example:
Many Lice reside in an Animal (Louse @ManyToOne Animal)
Animals can specialize into Cats or Dogs (SINGLE_TABLE Inheritance)
A Dog can have one Bone (Dog @OneToOne Bone)
A Cat can have one Yarn (Yarn @OneToOne Yarn)
From a specific Louse, Doctrine can't get the Animal's Bone or Yarn.