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: EM->connect public usage #4

Closed
DarthLegiON opened this issue Aug 25, 2023 · 2 comments
Closed

Deprecation warning: EM->connect public usage #4

DarthLegiON opened this issue Aug 25, 2023 · 2 comments

Comments

@DarthLegiON
Copy link

DarthLegiON commented Aug 25, 2023

When using Codeception doctrine2 methods, I'm getting this deprecation warning:

Public access to Connection::connect() is deprecated. (Connection.php:364 called by Doctrine2.php:260, doctrine/dbal#4966, package doctrine/dbal) /var/app/vendor/doctrine/deprecations/lib/Doctrine/Deprecations/Deprecation.php:209

Looks like calling this method directly from retrieveEntityManager will be impossible in DBAL 4.0, the method will become protected.

@W0rma
Copy link
Contributor

W0rma commented Nov 7, 2023

Will be fixed by Codeception/module-doctrine2#73

@TavoNiievez TavoNiievez transferred this issue from Codeception/module-doctrine2 Feb 17, 2024
@TavoNiievez
Copy link
Member

TavoNiievez commented Feb 17, 2024

Fixed by: #26

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

Successfully merging a pull request may close this issue.

3 participants