Skip to content

[DoctrineBridge] Fix Connection::createSchemaManager() for Doctrine DBAL v2 #58955

@neodevcode

Description

@neodevcode

Symfony version(s) affected

6.4

Description

As the 6.4 symfony/doctrine-bridge is compatible with doctrine/dbal 2.13 we need to check for createSchemaManager existance and use getSchemaManager instead if necessary (like it's already done in the messenger component for instance)

How to reproduce

With a Symfony 6.4 project using :

"doctrine/dbal": "<3.0",
"doctrine/doctrine-bundle": "<2.8",
"doctrine/doctrine-migrations-bundle": "^3.3",
"doctrine/orm": "<3.0",

Possible Solution

#58956

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions