mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-1757: DQL exception when building query with multiple from and join parts #2211
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 (Apr 3, 2012).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user gedrox:
Query builder creates bad DQL if multiple FROM and JOIN parts are used.
As example such query builder code
will generate DQL
but should generate this instead
The DQL parser raises exception
@doctrinebot commented on GitHub (Apr 3, 2012):
Comment created by gedrox:
The test case attached.
The problem is that for the relation c.d the query builder uses the first root entity as the master which makes it to be included before the join b.c.
@doctrinebot commented on GitHub (Apr 3, 2012):
Comment created by gedrox:
Dirty patch attached.
@doctrinebot commented on GitHub (May 27, 2012):
Comment created by @beberlei:
This was fixed through a PR some weeks ago.
@doctrinebot commented on GitHub (May 27, 2012):
Issue was closed with resolution "Fixed"
@doctrinebot commented on GitHub (Dec 13, 2015):
Imported 2 attachments from Jira into https://gist.github.com/7b1b19046637f3a9f15e