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

Open
opened 2026-01-22 13:23:26 +01:00 by admin · 0 comments
Owner

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.

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.
admin added the Bug label 2026-01-22 13:23:26 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#1724