Jira issue originally created by user cloun:
When using createQueryBuilder() the dql created throws an error when executed:
Error: Expected Doctrine\ORM\Query\Lexer::T_IDENTIFIER, got 'LEFT'
The dql created is missing the alias after "from".
Comment created by cloun:
The same issue in trunk
Comment created by @guilhermeblanco:
You must define an alias for all situations (update and select queries included).
Closing ticket. If I made something wrong, reopen it and provide more informations.
Thanks for fix, but it is not all. Please, look at EntityRepository->createQueryBuilder method. Specified alias is not pushed into 'from' method. I suggest:
public function createQueryBuilder($alias)
->from($this->_entityName, $alias); //the second parameter lost
In r7006 this issue was fixed. Thanks for the clear report now... it saves quite some time =)
Also thanks for the patch!
Issue was closed with resolution "Fixed"
Thanks for fix =)