mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Order by NULL on grouped selects #5079
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 @whyte624 on GitHub (Apr 1, 2016).
Originally assigned to: @Ocramius on GitHub.
It would be good to be able to add
ORDER BY NULLexpression on queries that haveGROUP BYpart.As it mentioned in Mysql docs:
@PezCoder commented on GitHub (Jul 31, 2017):
Can anyone help in how this can be achieved in doctrine ?
I've looked into custom dql functions but that are not helpful as they can be used inside other functions like select, where etc.
We somehow need a way to override the addOrderBy function as it doesn't except 'NULL' OR NULL as parameter. Tried both.
@Ocramius commented on GitHub (Jul 31, 2017):
This is a micro-optimisation that only makes sense in MySQL. We only provide support for cross-platform available features.
Closing as
won't fix.