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

          Marcos Augusto da Silva Garcia created issue -
          Guilherme Blanco made changes -
          Field Original Value New Value
          Assignee Benjamin Eberlei [ beberlei ] Guilherme Blanco [ guilhermeblanco ]
          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.
          Benjamin Eberlei made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Invalid [ 6 ]
          Benjamin Eberlei made changes -
          Link This issue duplicates DDC-16 [ DDC-16 ]
          Hide
          Guilherme Blanco added a comment -

          Reopening

          Show
          Guilherme Blanco added a comment - Reopening
          Guilherme Blanco made changes -
          Resolution Invalid [ 6 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Hide
          Guilherme Blanco added a comment -

          Duplicate to DDC-16

          Show
          Guilherme Blanco added a comment - Duplicate to DDC-16
          Guilherme Blanco made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Resolution Duplicate [ 3 ]
          Benjamin Eberlei made changes -
          Workflow jira [ 13020 ] jira-feedback [ 15680 ]
          Benjamin Eberlei made changes -
          Workflow jira-feedback [ 15680 ] jira-feedback2 [ 17544 ]
          Benjamin Eberlei made changes -
          Workflow jira-feedback2 [ 17544 ] jira-feedback3 [ 19801 ]

          This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

          • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DDC-1377, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

            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: