Closed
Description
This used to work with 2.5.x
:
$em->createQueryBuilder()
->delete(MyEntity::class)
->getQuery()
->execute();
Now with 2.6.0
I get this error:
[Syntax Error] line 0, col -1: Error: Expected Doctrine\ORM\Query\Lexer::T_IDENTIFIER, got end of string. (Doctrine\ORM\Query\QueryException)
If I add an alias it works again:
$em->createQueryBuilder()
->delete(MyEntity::class, 'e')
->getQuery()
->execute();
Is this BC break intentional?