Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Duplicate
-
Affects Version/s: 2.1.1
-
Fix Version/s: None
-
Component/s: DQL, Mapping Drivers, ORM
-
Security Level: All
-
Labels:None
-
Environment:Xubuntu 11.04 Linux 2.6.38 i386
Description
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.
Issue Links
- duplicates
-
DDC-16
DQL Ignores properties of subclasses
-
Doctrine implements strict OO inheritance, what you want does not work as no casting is currently possible.