-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate Foo:Bar entity short syntax #8818
Comments
beberlei
added a commit
to beberlei/doctrine2
that referenced
this issue
Jul 4, 2021
beberlei
added a commit
to beberlei/doctrine2
that referenced
this issue
Aug 4, 2021
greg0ire
added a commit
that referenced
this issue
Aug 5, 2021
…precation [GH-8818] Deprecate entity namespace short aliases.
This was referenced Oct 4, 2021
M0rgan01
pushed a commit
to M0rgan01/PrestaShop
that referenced
this issue
Jul 31, 2023
I have been using Error says: |
Use the FQCN of the entity class. |
M0rgan01
pushed a commit
to M0rgan01/PrestaShop
that referenced
this issue
Aug 25, 2023
jolelievre
pushed a commit
to M0rgan01/PrestaShop
that referenced
this issue
Sep 18, 2023
M0rgan01
pushed a commit
to M0rgan01/PrestaShop
that referenced
this issue
Sep 25, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We want to deprecate and remove the short alias naming of entities in manager, repository and DQL. This feature is available through the following configuration:
Using short alias naming prevents Psalm/PHPStan static analysis from working and also generally is confusing for people to see that are only used to the fully qualified class name syntax.
The short alias syntax was invented when PHP did not have the magic class constant yet, so we recommend all users to change their code using short aliases to use them:
This deprecation should be triggered only on using the aliases, not on configuring them. This way it does not get triggered if the alias is just defined but never used.
The text was updated successfully, but these errors were encountered: