Skip to content

v3.0.0

Latest
Compare
Choose a tag to compare
@acoulton acoulton released this 13 Dec 13:58
3829514

Breaking changes

  • Switch to using attributes instead of annotations for mapping
    • Removes the ExplicitCallslistAnnotationDriver class
    • Removes the doctrine.config.metadata.reader service definition
    • Adds ExplicitClasslistAttributeDriver as the default mapping driver
    • Drops composer dependency on doctrine/annotations
  • Switch to using PSR-6 cache implementations for metadata, query and result caches:
    • drops the composer dependency on doctrine/cache in favour of symfony/cache
    • DoctrineCacheFactory methods are now hard-typehinted to return CacheItemPoolInterface
  • All classes and methods now have hard typehints and return values
  • [CHANGE] Now allows doctrine/persistence 3.x as well as 2.x - projects that specifically
    require doctrine/persistence 2.x may need to pin it in their own composer.json.

Other changes

  • Add EntityDetacher::detachAllOfType as a migration path for the old $entityManager->clear($entityName)
  • Narrow supported dependency versions to the current latest minor of the suppoerted
    major version.
  • Drop support for PHP < 8.2