-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
User Deprecated: Doctrine\Common\ClassLoader is deprecated. #28119
Comments
Check this answer on StackOverflow |
This was fixed in Doctrine ORM (see doctrine/orm#7326) but not released yet. I am closing here as there is nothing we can do in Symfony. |
Thanks a lot, guys! ))) |
I was able to remove this warning by strictly requiring: |
Hmm, I have 2.9.0 and still can see this deprecation in the profiler... |
@crabnky this deprecation is precisely triggered when you have doctrine/common 2.9.0 (because the 2.9.0 release is the one adding the warnings, and the fix in the ORM is not released) |
Oh, thanks, understood. Do you know when the new version is planned to be released? |
no. That's something you need to ask to the Doctrine ORM maintainers. |
Symfony version(s) affected: 4.1.3
Description
In Symfony Profiler i can see that Doctrine\Common\ClassLoader is deprecated. And in the trace i can see, that it refers to the Repository of one of the classes, that was autogenerated with the Entity. And it refers to the string where is called parent construct of the class ServiceEntityRepository. Could you please provide some instructions how could i get rid of this notice in profiler?
How to reproduce

The text was updated successfully, but these errors were encountered: