Skip to content
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 on Symfony\Bridge\Doctrine\Logger\DbalLogger #1489

Closed
r-martins opened this issue Mar 31, 2022 · 2 comments
Closed

Deprecation warning on Symfony\Bridge\Doctrine\Logger\DbalLogger #1489

r-martins opened this issue Mar 31, 2022 · 2 comments

Comments

@r-martins
Copy link

r-martins commented Mar 31, 2022

When running a bin/phunit, I get a deprecation warning:

1x: The "Symfony\Bridge\Doctrine\Logger\DbalLogger" class implements "Doctrine\DBAL\Logging\SQLLogger" that is deprecated Use {@see \Doctrine\DBAL\Logging\Middleware} or implement {@see \Doctrine\DBAL\Driver\Middleware} instead.

The best solution I could see so far was this one...

You don't. It'll get fixed in a combination of the symfony/doctrine-bridge and doctrine/doctrine-bundle packages.

Sorry if it's a duplicated and/or will be fixed on #1431.

I'm using doctrine/doctrine-bundle 2.6.0.

@r-martins
Copy link
Author

r-martins commented Mar 31, 2022

Sorry, I noticed this is related to Symfony/Doctrine-Bridge and this is already noted there in this issue.

It points out to #1431 and #1429, and was fixed on #1456.

@dmaicher
Copy link
Contributor

indeed this deprecation will be fixed if #1431 is implemented. So currently you cannot get rid of it yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants