doctrine / mongodb-odm

The Official PHP MongoDB ORM/ODM
https://www.doctrine-project.org/projects/doctrine-mongodb-odm/en/latest/
MIT License
1.09k stars 504 forks source link

Support doctrine/persistence 3.0 #2419

Closed malarzm closed 2 years ago

malarzm commented 2 years ago

Ideally we need to allow lowest possible 2.x || ^3.0. I guess we'll need to go for 2.4 as a minimum because of ReflectionEnum and annotation driver changes anyway.

Basing on https://github.com/doctrine/persistence/blob/3.0.x/UPGRADE.md:

PR allowing || ^3.0 should mention in the upgrade notes that users may need to lock doctrine/persistence themselves should they rely on functionalities that were removed, especially:

malarzm commented 2 years ago

We need to prepare for https://github.com/doctrine/persistence/pull/272/files as our event is reusing common one's properties: https://github.com/doctrine/mongodb-odm/blob/2.3.x/lib/Doctrine/ODM/MongoDB/Event/OnClearEventArgs.php