zicht / menu-bundle

Library - ZichtMenuBundle - Database-managed menus (integrates KnpMenuBundle, Doctrine and SonataAdmin)
MIT License
1 stars 0 forks source link

Use gedmo/doctrine-extensions v3 #34

Closed 7ochem closed 2 years ago

7ochem commented 3 years ago

gedmo/doctrine-extensions v2 needs doctrine/common ~2.4 and is therefor holding back usage of doctrine/common v3 in projects. This is also holding back upgrading doctrine/orm v2 higher than 2.7 (2.9.5 is out currently).

This does imply a minimum PHP version of 7.2 because gedmo/doctrine-extensions v3 requires PHP ^7.2

I estimate that the upgrade to gedmo/doctrine-extensions v3 has minimal impact, see https://github.com/doctrine-extensions/DoctrineExtensions/blob/main/CHANGELOG.md#300---2020-09-23

cc: @erik-zicht

7ochem commented 2 years ago

There were issues in projects that were explicitly relying on gedmo/doctrine-extensions v2. This has been reversed in #36

  1. In the config/packages/doctrine.yaml there is configuration for this extension which contains a path within the v2 directory structure.
  2. If the next major versions of Doctrine Common and Doctrine Persistence are allowed, then the projects also need to be made compatible with them.