8000 Error for delete query without alias since 2.6.0 · Issue #6939 · doctrine/orm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Error for delete query without alias since 2.6.0 #6939
Closed
@dmaicher

Description

@dmaicher

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?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0