v3.11.0
版本发布时间: 2023-01-26 08:17:04
doctrine-extensions/DoctrineExtensions最新发布版本:v3.16.1(2024-06-26 00:22:58)
Added
- Tree: Add
Nested::ALLOWED_NODE_POSITIONS
constant in order to expose the available node positions - Support for
doctrine/collections
2.0 - Support for
doctrine/event-manager
2.0 - Loggable: Add
LogEntryInterface
interface 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,
@final
and@internal
annotations 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, a
Doctrine\Common\Annotations\Reader
orGedmo\Mapping\Driver\AttributeReader
instance 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/annotations
versions support autoloading - Loggable: Constants
LoggableListener::ACTION_CREATE
,LoggableListener::ACTION_UPDATE
andLoggableListener::ACTION_REMOVE
are deprecated. UseLogEntryInterface::ACTION_CREATE
,LogEntryInterface::ACTION_UPDATE
andLogEntryInterface::ACTION_REMOVE
instead.