Releases: doctrine/phpcr-odm
2.0.1
2.0.0
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, useChildrenCollection::sliceByChildName
instead. -
Removed
DocumentManager::merge()
-
Removed support for short namespace aliases.
ClassMetadataFactory::getFqcnFromAlias
and the namespace registering
onConfiguration
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.
2.0.0-beta2
Changes since 2.0.0-beta1
-
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, useChildrenCollection::sliceByChildName
instead. -
Removed
DocumentManager::merge()
-
Removed support for short namespace aliases.
ClassMetadataFactory::getFqcnFromAlias
and the namespace registering
onConfiguration
are removed.ClassMetadataFactory
methods now require their$className
argument to be an
actual FQCN. -
Support Symfony 7
1.8.0
1.7.2
2.0.0-beta1
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 deprecated annotations for fields. Use
@Field(type="...")
instead.
New Features
DocumentManager::getDocumentId()
to get the id of a managed document
Improvements
- Allow using
doctrine/persistence
Dropped support for PHP < 7.4 and Symfony < 5.4.