Skip to content

Loading…

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

Closed
doctrinebot opened this Issue · 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
@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.