Releases: doctrine-extensions/DoctrineExtensions
Releases · doctrine-extensions/DoctrineExtensions
v3.14.0
Added
- Support for Symfony 7
- Tree: Added
@templateand@template-extendsannotations to the Tree repositories
Changed
- Dropped support for PHP < 7.4
- Dropped support for Symfony < 5.4
- Dropped support for doctrine/dbal < 3.2
Deprecated
- Calling
Gedmo\Mapping\Event\Adapter\ORM::getObjectManager()andgetObject()on EventArgs that do not implementgetObjectManager()andgetObject()(such as old EventArgs implementinggetEntityManager()andgetEntity()) - Calling
Gedmo\Uploadable\Event\UploadableBaseEventArgs::getEntityManager()andgetEntity(). CallgetObjectManager()andgetObject()instead.
v3.13.0
v3.12.0
Added
- Tree:
setSibling()andgetSibling()methods in theNodeinterface through the BC@methodannotation - Tree: Support array of fields and directions in the
$sortByFieldand$directionparameters atAbstractTreeRepository::recover() - Loggable: Support for composite identifiers
Changed
- Named arguments have precedence over the values passed in the
$dataarray in annotation classes atGedmo\Mapping\Annotation\namespace - Removed conflict against "doctrine/cache" < 1.11, as this library is not used
- Return type from
TranslationProxy::__set()(fromTranslationProxytovoid)
Fixed
- Tree: Creation of dynamic
Node::$siblingproperty, which is deprecated as of PHP >= 8.2 - Return type from
TranslationProxy::__set()in order to honor its original signature (void)
Deprecated
- Tree: Not implementing
Nodeinterface in classes that are used as nodes - Implementing the
Gedmo\Tool\WrapperInterface::getIdentifier()method without the second argument ($flatten) is deprecated and will be required in version 4.0
v3.11.1
v3.11.0
Added
- Tree: Add
Nested::ALLOWED_NODE_POSITIONSconstant in order to expose the available node positions - Support for
doctrine/collections2.0 - Support for
doctrine/event-manager2.0 - Loggable: Add
LogEntryInterfaceinterface in order to be implemented by log entry models
Fixed
- Sortable: Fix return value check of Comparable interface (#2541)
- Uploadable: Retrieve the correct metadata when uploading entities of different classes (#2071)
- Translatable: Fix property existence check at
TranslatableListener::getTranslatableLocale()
Deprecated
- In order to close the API,
@finaland@internalannotations were added to all non base classes, which means that extending
these classes is deprecated and can not be inherited in version 4.0. - Sortable: Accepting a return type other than "integer" from
Comparable::compareTo()is deprecated inSortableListener::postFlush().
This will not be accepted in version 4.0. - Deprecate the annotation reader being allowed to be any object.
In 4.0, aDoctrine\Common\Annotations\ReaderorGedmo\Mapping\Driver\AttributeReaderinstance will be required. Gedmo\DoctrineExtensions::registerAnnotations()is deprecated and will be removed in 4.0, the method has been no-op'd as all
supporteddoctrine/annotationsversions support autoloading- Loggable: Constants
LoggableListener::ACTION_CREATE,LoggableListener::ACTION_UPDATEandLoggableListener::ACTION_REMOVE
are deprecated. UseLogEntryInterface::ACTION_CREATE,LogEntryInterface::ACTION_UPDATEandLogEntryInterface::ACTION_REMOVE
instead.
v3.10.0
v3.9.0
v3.8.0
Added
- Sluggable: Add support for
DateTimeImmutablefields - Tree: [NestedSet]
childrenQueryBuilder()to allow specifying sort order separately for each field - Tree: [NestedSet] Added option to reorder only direct children in
reorder()method
Changed
- Tree: In
ClosureTreeRepository::removeFromTree()andNestedTreeRepository::removeFromTree()when something fails in the transaction, it uses thecodefrom the original exception to construct the\Gedmo\Exception\RuntimeExceptioninstance instead ofnull.
Fixed
- Sluggable: Cast slug to string before passing it as argument 2 to
preg_match()(#2473) - Sortable: [SortableGroup] Fix sorting date columns in SQLite (#2462).
- PHPDoc of
AbstractMaterializedPath::removeNode()andAbstractMaterializedPath::getChildren() - Retrieving the proper metadata cache from Doctrine when using a CacheWarmer.
v3.7.0
Added
- Add support for doctrine/persistence 3
Changed
- Removed call to deprecated
ClassMetadataFactory::getCacheDriver()method. - Dropped support for doctrine/mongodb-odm < 2.3.
- Make doctrine/cache an optional dependency.
Fixed
- Loggable: Fix
appendNumberrenaming for files without extension (#2228)
v3.6.0
Added
- Translatable: Add defaultTranslationValue option to allow null or string value (#2167). TranslatableListener can hydrate object properties with null value, but it may cause a Type error for non-nullable getter upon a missing translation.