mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-234: CLONE -createQueryBuilder does not insert alias into "from" part #287
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 (Jan 4, 2010).
Originally assigned to: @guilhermeblanco on GitHub.
Jira issue originally created by user cloun:
When using createQueryBuilder() the dql created throws an error when executed:
Error: Expected Doctrine\ORM\Query\Lexer::T_IDENTIFIER, got 'LEFT'
The dql created is missing the alias after "from".
@doctrinebot commented on GitHub (Jan 4, 2010):
Comment created by cloun:
The same issue in trunk
@doctrinebot commented on GitHub (Jan 4, 2010):
Comment created by @guilhermeblanco:
You must define an alias for all situations (update and select queries included).
Closing ticket. If I made something wrong, reopen it and provide more informations.
Thanks
@doctrinebot commented on GitHub (Jan 5, 2010):
Comment created by cloun:
Thanks for fix, but it is not all. Please, look at EntityRepository->createQueryBuilder method. Specified alias is not pushed into 'from' method. I suggest:
@doctrinebot commented on GitHub (Jan 5, 2010):
Comment created by @guilhermeblanco:
In r7006 this issue was fixed. Thanks for the clear report now... it saves quite some time =)
Also thanks for the patch!
Cheers,
@doctrinebot commented on GitHub (Jan 5, 2010):
Issue was closed with resolution "Fixed"
@doctrinebot commented on GitHub (Jan 6, 2010):
Comment created by cloun:
Thanks for fix =)