Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-505

Bad parsing of reserved word in query andWhere method

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0-ALPHA4
    • Fix Version/s: 2.0-BETA2
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      This call:

      Unable to find source-code formatter for language: php. Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml
      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>
      

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Roman S. Borschel
            Reporter:
            Tautvydas Andrikys
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: