Skip to content

Deprecation warning: EM->connect public usage #4

Closed
@DarthLegiON

Description

@DarthLegiON

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions