Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-826

Problem with @MappedSuperclass and associations

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 2.0-BETA2
    • Fix Version/s: 2.0-RC1
    • Component/s: Mapping Drivers
    • Security Level: All
    • Labels:
      None

      Description

      I have a project with global entities(Lib\Shared\Main - @MappedSuperclass ) and local entities(Shared\Main) which extends the globals.

      The following DQL is returning wrong SQL:

      SELECT Horoscope FROM Shared\Main\Horoscope Horoscope JOIN Horoscope.sign Sign WHERE Sign.id = 7

      SELECT h0_.id AS id0, h0_.date AS date1, h0_.contents AS contents2, h0_.signId AS signId3 FROM horoscopes h0_ INNER JOIN global.sys_zodiac_signs g1_ ON h2_.signId = g1_.id WHERE g1_.id = 7

      The attached zip contains the entity files.

      What is the correct way to extends entities and to build JOINed requests

      Have a nice day

        Issue Links

          Activity

          Hide
          Benjamin Eberlei added a comment -

          Beta2? Please update to Beta4

          Are you using YAML Driver? If yes this is a known bug that was fixed in trunk lately and will be included as a fix for RC1.

          Show
          Benjamin Eberlei added a comment - Beta2? Please update to Beta4 Are you using YAML Driver? If yes this is a known bug that was fixed in trunk lately and will be included as a fix for RC1.
          Hide
          Kristiyan Chakarov added a comment -

          I'm using annotations and Beta4 is not working better for my problem.

          Show
          Kristiyan Chakarov added a comment - I'm using annotations and Beta4 is not working better for my problem.
          Hide
          Kristiyan Chakarov added a comment -

          is there a good example of using Class Table Inheritance and Mapped Superclasses

          Show
          Kristiyan Chakarov added a comment - is there a good example of using Class Table Inheritance and Mapped Superclasses
          Hide
          Benjamin Eberlei added a comment -

          I cant reproduce it, i am pretty sure this is a duplicate of DDC-671

          Show
          Benjamin Eberlei added a comment - I cant reproduce it, i am pretty sure this is a duplicate of DDC-671

            People

            • Assignee:
              Benjamin Eberlei
              Reporter:
              Kristiyan Chakarov
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: