-
Notifications
You must be signed in to change notification settings - Fork 41
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
Deprecation warning #41
Comments
We could try to use a decorator pattern instead of extension, but I'm not sure if everything that we need to accomplish is doable in that way... |
Umh, this seems counter-intuitive, but avoiding extending
|
Yeah that does seem odd, if the only way to wrap is by extending then either the deprecation message is incorrect or doctrine needs to provide another way to wrap the connection. I suspect we might have to live with the warning for a while until this is resolved by doctrine and an way forward becomes apparent. |
The deprecation warning seems to come from Symfony's DebugClassLoader. I think the only way is to disable |
Another important deprecation to consider:
|
Closing as everything is now correctly handled in 2.0. |
Hi
Thanks for this library - it's been working very well for us. I'm seeing this deprecation warning in our Symfony project
The "Doctrine\DBAL\Connection::__construct()" method is considered internal The connection can be only instantiated by the driver manager. It may change without further notice. You should not extend it from "Facile\DoctrineMySQLComeBack\Doctrine\DBAL\Connection".
This is with doctrine/dbal 2.12.0. I imagine this isn't a real problem yet, but annoying as this gets flagged up as part of our build process. Is there a way to achieve what this library does without overriding the constructor? Or perhaps a way to turn off the warning at least.
Regards
Steve
The text was updated successfully, but these errors were encountered: