DDC-524: Wrong SQL for DQL UPDATE/DELETE statements that use association paths #652

Closed
opened 2026-01-22 12:45:43 +01:00 by admin · 2 comments
Owner

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

Originally assigned to: @guilhermeblanco on GitHub.

Jira issue originally created by user romanb:

Example:

// u.Group owning side
DELETE FROM User u WHERE u.Group = ?1

SQL:

DELETE FROM users WHERE u0*.group*id = ?

Note the use of a non-existant alias.

UPDATE/DELETE statements can not use aliases, these are only support by some platforms like mysql, not oracle and others.

Originally created by @doctrinebot on GitHub (Apr 15, 2010). Originally assigned to: @guilhermeblanco on GitHub. Jira issue originally created by user romanb: Example: ``` // u.Group owning side DELETE FROM User u WHERE u.Group = ?1 ``` SQL: ``` DELETE FROM users WHERE u0*.group*id = ? ``` Note the use of a non-existant alias. UPDATE/DELETE statements can not use aliases, these are only support by some platforms like mysql, **not** oracle and others.
admin added the Bug label 2026-01-22 12:45:43 +01:00
admin closed this issue 2026-01-22 12:45:43 +01:00
Author
Owner

@doctrinebot commented on GitHub (Apr 22, 2010):

Comment created by @guilhermeblanco:

Fixed

@doctrinebot commented on GitHub (Apr 22, 2010): Comment created by @guilhermeblanco: Fixed
Author
Owner

@doctrinebot commented on GitHub (Apr 22, 2010):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Apr 22, 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#652