mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Deprecate DELETE DQLs without alias #5899
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 @lcobucci on GitHub (Feb 26, 2018).
Before
v2.6.0we were accepting DELETE DQLs (viaQueryBuilderand directly usingEntityManager#createQuery()) without alias, even though our grammar was requiring it. Inv2.6.0we fixed the parsing and started to emit errors, which is a BC-break.#7077 fixes the break but we should emit deprecation notices for that, if we decide to not change the grammar - which was also challenged in that PR because JPA doesn't require the alias for bulk delete queries.