DDC-826: Problem with @MappedSuperclass and associations #1019

Closed
opened 2026-01-22 12:59:06 +01:00 by admin · 6 comments
Owner

Originally created by @doctrinebot on GitHub (Oct 6, 2010).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user mojito:

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

Originally created by @doctrinebot on GitHub (Oct 6, 2010). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user mojito: 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
admin added the Bug label 2026-01-22 12:59:06 +01:00
admin closed this issue 2026-01-22 12:59:06 +01:00
Author
Owner

@doctrinebot commented on GitHub (Oct 6, 2010):

@doctrinebot commented on GitHub (Oct 6, 2010): - is referenced by [DDC-841: Generated SQL contains non-existen alias](http://www.doctrine-project.org/jira/browse/DDC-841)
Author
Owner

@doctrinebot commented on GitHub (Oct 6, 2010):

Comment created by @beberlei:

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.

@doctrinebot commented on GitHub (Oct 6, 2010): Comment created by @beberlei: 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.
Author
Owner

@doctrinebot commented on GitHub (Oct 6, 2010):

Comment created by mojito:

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

@doctrinebot commented on GitHub (Oct 6, 2010): Comment created by mojito: I'm using annotations and Beta4 is not working better for my problem.
Author
Owner

@doctrinebot commented on GitHub (Oct 6, 2010):

Comment created by mojito:

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

@doctrinebot commented on GitHub (Oct 6, 2010): Comment created by mojito: is there a good example of using Class Table Inheritance and Mapped Superclasses
Author
Owner

@doctrinebot commented on GitHub (Oct 31, 2010):

Comment created by @beberlei:

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

@doctrinebot commented on GitHub (Oct 31, 2010): Comment created by @beberlei: I cant reproduce it, i am pretty sure this is a duplicate of [DDC-671](http://www.doctrine-project.org/jira/browse/DDC-671)
Author
Owner

@doctrinebot commented on GitHub (Oct 31, 2010):

Issue was closed with resolution "Duplicate"

@doctrinebot commented on GitHub (Oct 31, 2010): Issue was closed with resolution "Duplicate"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#1019