mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-1430: GROUP BY $alias in Oracle #1792
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 (Oct 18, 2011).
Jira issue originally created by user joksnet:
When creating a query with the QueryBuilder, the groupBy with only the alias doesn't work as expected.
It creates the group by with the ID only, but Oracle need all the fields to work.
The ORA-00979: not a GROUP BY expression error is returned.
From my SlotRepository I do:
The SQL generated is:
The SQL expected is:
As workaround I include all fields manually.
Thank you,
Juan Manuel