mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-331: Select Field of Root on Child Dql Alias generates wrong SQL #407
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Feb 14, 2010).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user @beberlei:
In a Class Table Inheritance Scenario, when you select a field "c.name" on a dql alias c of a child entity, where the field is really "p.name" on the parent the DQL parser does not recognize this and does not change the sql table alias. Test-Case attached.
@doctrinebot commented on GitHub (Feb 14, 2010):
Comment created by @beberlei:
DQL is:
SQL is:
But should be:
@doctrinebot commented on GitHub (Mar 2, 2010):
Comment created by @guilhermeblanco:
Added DDC-331 to core and provided test case is no longer valid.
Closing this ticket and committing the test case to prevent a possible BC break in the future.
@doctrinebot commented on GitHub (Mar 2, 2010):
Issue was closed with resolution "Cannot Reproduce"
@doctrinebot commented on GitHub (Dec 13, 2015):
Imported 1 attachments from Jira into https://gist.github.com/881dd1939fd47b9d32c4