Skip to content

2.0.0

Compare
Choose a tag to compare
@dbu dbu released this 03 Apr 06:49
· 13 commits to 2.x since this release
2.0.0
ada1008

BC Breaks

  • Replaced the deprecated Doctrine Cache with PSR-6 Cache.
    The Configuration class now expects PSR-6 Cache instances.

  • Removed deprecated methods HierarchyInterface::getParent/setParent.
    Use getParentDocument/setParentDocument instead.

  • DocumentManager::flush no longer saves the PHPCR session if there are no changes
    on the ODM layer.

  • Removed annotation mappings. Use attributes (or XML or YAML) instead.

  • ChildrenCollection::slice no longer accepts a node name as offset. If you
    want a slice starting from a node name, use ChildrenCollection::sliceByChildName
    instead.

  • Removed DocumentManager::merge()

  • Removed support for short namespace aliases. ClassMetadataFactory::getFqcnFromAlias and the namespace registering
    on Configuration are removed. ClassMetadataFactory methods now require their $className argument to be an
    actual FQCN.

New Features

  • DocumentManager::getDocumentId() to get the id of a managed document

Improvements

  • Allow using doctrine/persistence

  • Added support for Symfony 7. Dropped support for PHP < 8.1 and Symfony < 5.4.