mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-775: Ability to use IFNULL() function in ORDER BY clause #954
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 (Aug 29, 2010).
Jira issue originally created by user darkangel:
[Syntax Error] line 0, col 46: Error: Expected end of string, got '('
@doctrinebot commented on GitHub (Feb 20, 2012):
Comment created by riki4321:
I have the same error while using FIELD mysql function.
I added beberlei/DoctrineExtensions to my Symfony2 project to enable the FIELD function, but I'm able to use it in SELECT clause only. The problem is that in that case Doctrine returns bad result for me. Here is the example:
The result of
is:
Without that addSelect() function call I have correct result:
So I think orderByItem() function in Parser.php class should be extended so that MySQL function could be used there.
@doctrinebot commented on GitHub (Feb 20, 2012):
Comment created by @FabioBatSilva:
Hi Nikita,
I have a pull request under discussion about this ticket :
https://github.com/doctrine/doctrine2/pull/288
please follow, and fell free to comment. :)
@doctrinebot commented on GitHub (Mar 25, 2012):
Comment created by @FabioBatSilva:
i'm +1 for this feature.
But is not cross-platform then we can't support..
More details : https://github.com/doctrine/doctrine2/pull/288
@doctrinebot commented on GitHub (Mar 25, 2012):
Issue was closed with resolution "Won't Fix"