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

Closed
doctrinebot opened this Issue Apr 10, 2010 · 1 comment

1 participant

@doctrinebot

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:

<message>
[Syntax Error] line 0, col 64: Error: Expected Doctrine\ORM\Query\Lexer::T_IDENTIFIER, got 'from'
</message>
<file line="41">
<path>
/.../Doctrine/ORM/Query/QueryException.php
</path>
</file>
@doctrinebot

Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added this to the 2.0-BETA2 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment