mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
2.5 -> 2.6 upgrade BC break: added restrictions on aliases/identifiers #6176
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 @zerocrates on GitHub (Feb 15, 2019).
BC Break Report
Summary
DQL in 2.5 is very loose with what's allowed as an alias: in particular, my usage was to simply repeat the FQCN as the "alias" to avoid the distinction, and this works perfectly fine.
In 2.6 such aliases are syntax errors.
The 2.6 EBNF documentation was updated to indicate the new restriction, but I don't see mention of it elsewhere, in UPGRADING or otherwise.
Of course this would extend to other "interesting" aliases but in my particular case they're always FQCNs.
Current behavior
Given previously-working DQL of the form
SELECT Example\Entity FROM Example\Entity Example\Entity ...: