Codeception / module-doctrine

Next gen Doctrine module for Codeception
MIT License
2 stars 1 forks source link

Deprecation warning: EM->connect public usage #4

Closed DarthLegiON closed 4 months ago

DarthLegiON commented 10 months ago

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, https://github.com/doctrine/dbal/issues/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 commented 7 months ago

Will be fixed by https://github.com/Codeception/module-doctrine2/pull/73

TavoNiievez commented 4 months ago

Fixed by: https://github.com/Codeception/module-doctrine/pull/26