mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Can not represent query with subquery, that has group by and alias #6392
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 @andrew-svirin on GitHub (Jan 28, 2020).
I am trying to represent not complex query with doctrine and fail. I suspect that Doctrine has small defect.
PgSQL:
Doctrine:
Error is: (it is not informative error, but its point on LOWER(sl.title) as t )
@ostrolucky commented on GitHub (Jan 28, 2020):
Moving, not a DoctrineBundle issue
@SenseException commented on GitHub (Jan 28, 2020):
@andrew-svirin Can you please also show the resulting DQL of this querybuilder?
@andrew-svirin commented on GitHub (Jan 29, 2020):
I can not finish building, because get error
$qb->getQuery()->execute();this line does not reach:So i also can not get DQL
@faizanakram99 commented on GitHub (Feb 23, 2021):
@andrew-svirin
You can do
$qb->getQuery()->getDQL()to see the generated DQL and then paste it here.