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

Closed
opened 2026-01-22 12:45:05 +01:00 by admin · 1 comment
Owner

Originally created by @doctrinebot on GitHub (Apr 10, 2010).

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>
Originally created by @doctrinebot on GitHub (Apr 10, 2010). Jira issue originally created by user esminis: This call: ``` php class ... extends \Doctrine\ORM\EntityRepository { protected function query() { // ... $this->createQueryBuilder('T')->andWhere('T.from = 0')->getQuery()->execute(); // ... } } ``` Results in this error: ``` xml <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> ```
admin added the Bug label 2026-01-22 12:45:05 +01:00
admin closed this issue 2026-01-22 12:45:06 +01:00
Author
Owner

@doctrinebot commented on GitHub (May 18, 2010):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (May 18, 2010): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#627