DoctrineBundle: Symfony 5.1.3 & 4.4.11 incompatible with 2.1

since in the latest version of symfony/doctrine-bridge - requires doctrine/persistence: ^1.3|^2 - now. The updates struggles and downgrades the doctrine-bundle to 2.0.2

- Removing doctrine/sql-formatter (1.1.0)
- Updating doctrine/persistence (1.3.7 => 2.0.0): Loading from cache
- Updating doctrine/common (2.13.3 => 3.0.2): Loading from cache
- Installing jdorn/sql-formatter (v1.2.17): Loading from cache
- Downgrading doctrine/doctrine-bundle (2.1.0 => 2.0.2): Loading from cache

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (5 by maintainers)

Most upvoted comments

well, it depends. If your doctrine-bundle dependency is ^2.1, you will directly get a solution using doctrine/persistence 1.3, doctrine/orm 2.7.3 and doctrine-bundle 2.1.0. For the case of requiring doctrine/doctrine-bundle ^2.0, Composer indeed has the choice to either use the latest doctrine/persistence or the latest doctrine/doctrine-bundle, and might make a different choice than the one you would want (but both are equally valid, and which solution is selected depends on the order in which the solver decides on packages as it will use the first valid solution it finds).

There is a WIP about adding support for doctrine/persistence 2, but it is currently not ready to be merged.