Skip to content


DDC-505: Bad parsing of reserved word in query andWhere method #5012

doctrinebot opened this Issue · 1 comment

1 participant


Jira issue originally created by user esminis:

This call:

class ... extends \Doctrine\ORM\EntityRepository {

    protected function query() {
        // ...
        $this->createQueryBuilder('T')->andWhere('T.from = 0')->getQuery()->execute();
        // ...

Results in this error:

[Syntax Error] line 0, col 64: Error: Expected Doctrine\ORM\Query\Lexer::T_IDENTIFIER, got 'from'
<file line="41">

Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added this to the 2.0-BETA2 milestone
@doctrinebot doctrinebot closed this
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.