Closed malarzm closed 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
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:
OnClearEventArgs::clearsAllEntities()
andOnClearEventArgs::getEntityClass()
- https://github.com/doctrine/mongodb-odm/pull/2423ObjectManagerAware
- not used directly in ODMAnnotationDriver
- https://github.com/doctrine/mongodb-odm/pull/2420 https://github.com/doctrine/mongodb-odm/pull/2443MappingException::pathRequired()
- not used directly in ODMPersistentObject
- not used directly in ODMPR allowing
|| ^3.0
should mention in the upgrade notes that users may need to lockdoctrine/persistence
themselves should they rely on functionalities that were removed, especially: