DDC-1377: Doctrine doesn't understand associations from SINGLE_TABLE inheritances #1996

Closed
doctrinebot opened this Issue Sep 14, 2011 · 5 comments

2 participants

@doctrinebot

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.

@doctrinebot

Comment created by @beberlei:

Doctrine implements strict OO inheritance, what you want does not work as no casting is currently possible.

@doctrinebot

Comment created by @guilhermeblanco:

Reopening

@doctrinebot

Comment created by @guilhermeblanco:

Duplicate to DDC-16

@doctrinebot

Issue was closed with resolution "Duplicate"

@doctrinebot doctrinebot closed this Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment