Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1377

Doctrine doesn't understand associations from SINGLE_TABLE inheritances

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker 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

          Activity

          Hide
          Guilherme Blanco added a comment -

          Duplicate to DDC-16

          Show
          Guilherme Blanco added a comment - Duplicate to DDC-16
          Hide
          Guilherme Blanco added a comment -

          Reopening

          Show
          Guilherme Blanco added a comment - Reopening
          Hide
          Benjamin Eberlei added a comment -

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

          Show
          Benjamin Eberlei added a comment - Doctrine implements strict OO inheritance, what you want does not work as no casting is currently possible.

            People

            • Assignee:
              Guilherme Blanco
              Reporter:
              Marcos Augusto da Silva Garcia
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: