mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-794: Error: Expected Doctrine\ORM\Query\Lexer::T_CLOSE_PARENTHESIS, got '=' #978
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 (Sep 8, 2010).
Jira issue originally created by user pabelanger:
This apears to be a regression, using the following syntax:
Doctrine - works!
Doctrine2 - exception
Exception
@doctrinebot commented on GitHub (Sep 9, 2010):
Comment created by @beberlei:
Fixed formatting
@doctrinebot commented on GitHub (Sep 9, 2010):
Comment created by @beberlei:
Sha1 is not a supported function of DQL, you have to implement it yourself:
http://www.doctrine-project.org/projects/orm/2.0/docs/reference/dql-doctrine-query-language/en#functions,-operators,-aggregates:adding-your-own-functions-to-the-dql-language
Additionally you cannot use the equals operator inside the select expression, its not cross-vendor compatible, therefore not supported anymore. You can easily rewrite the query
to only return the password and do the sha1 in userland, that way its even cross-vendor compatible, since that function is not supported by vendors except MySQL i think.
@doctrinebot commented on GitHub (Sep 9, 2010):
Issue was closed with resolution "Won't Fix"