mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Use ON for join conditions for arbitrary DQL joins instead of using WITH #7557
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @stof on GitHub (Oct 7, 2025).
Feature Request
What
DQL supports 2 kinds of joins:
WITHWITHkeyword, even though the conditions in this case have exactly the same semantic than theONconditions of SQL joinsThis is about changing that second case (not changing the first one) to support
ONas keyword and deprecating the support ofWITHfor that caseWhy
This inconsistency with SQL causes lots of confusion in the ecosystem. The fact that
Expr\Joinhas aONconstant while DQL did not support parsing it causes even more confusion when using the QueryBuilder.See #7891 and #3544,
How
Change the parsing of
JOINto distinguish the 2 kinds of joins in the handling of conditions.