mirror of
https://github.com/doctrine/orm.git
synced 2026-04-24 06:58:19 +02:00
DDC-340: DQL Keywords as Model Properties #421
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 (Feb 15, 2010).
Jira issue originally created by user mridgway:
I noticed in doing some work with models and DQL that I wasn't able to use the word 'group' as a model property and do an inner join on it.
Example:
Now some DQL:
The parser throws a syntax error
Error: Expected Doctrine\ORM\Query\Lexer::T_IDENTIFIER, got 'group'Is there a way to escape identifiers in DQL? Or better yet can we make it not require escaping?
@doctrinebot commented on GitHub (Feb 15, 2010):
Comment created by romanb:
This should be fixed in Parser#JoinAssociationPathExpression where match(T_IDENTIFIER) is used. Instead we should simply match the next token, whatever it is. If we want to be a bit more strict we can do a ctype_alnum check or similar.
@doctrinebot commented on GitHub (Feb 20, 2010):
Comment created by romanb:
Fixed in trunk.
@doctrinebot commented on GitHub (Feb 20, 2010):
Issue was closed with resolution "Fixed"