Doctrine Extensions v3.5.0 Release Notes
Release Date: 2022-01-10 // about 2 years ago-
โ Added
- ๐ SoftDeleteable: Support to use annotations as attributes on PHP >= 8.0.
- ๐ Blameable: Support to use annotations as attributes on PHP >= 8.0.
- ๐ IpTraceable: Support to use annotations as attributes on PHP >= 8.0.
- ๐ Sortable: Support to use annotations as attributes on PHP >= 8.0.
- ๐ Sluggable: Support to use annotations as attributes on PHP >= 8.0.
- ๐ Uploadable: Support to use annotations as attributes on PHP >= 8.0.
- ๐ Tree: Support to use annotations as attributes on PHP >= 8.0.
- ๐ References: Support to use annotations as attributes on PHP >= 8.0.
- ๐ ReferenceIntegrity: Support to use annotations as attributes on PHP >= 8.0.
- ๐ SoftDeleteable: Support for custom column types (like Carbon).
- ๐ Timestampable: Support for custom column types (like Carbon).
- ๐ Translatable: Added an index to
Translation
entity to speed up searches usingGedmo\Translatable\Entity\Repository\TranslationRepository::findTranslations()
method. Gedmo\Mapping\Event\AdapterInterface::getObject()
method.
๐ Fixed
- ๐ง Blameable, IpTraceable, Timestampable: Type handling for the tracked field values configured in the origin field.
- Loggable: Using only PHP 8 attributes.
- ๐ References: Avoid deprecations using LazyCollection with PHP 8.1
- Tree: Association mapping problems using Closure tree strategy (by manually defining mapping on the closure entity).
- Wrong PHPDoc type declarations.
- ๐ Avoid calling deprecated
AbstractClassMetadataFactory::getCacheDriver()
method. - ๐ Avoid deprecations using
doctrine/mongodb-odm
>= 2.2 - ๐ Translatable:
Gedmo\Translatable\Document\Repository\TranslationRepository::findObjectByTranslatedField()
method accessing a non-existing key.
๐ Deprecated
- ๐ Tree: When using Closure tree strategy, it is deprecated not defining the mapping associations of the closure entity.
- ๐ฒ
Gedmo\Tool\Logging\DBAL\QueryAnalizer
class without replacement. - ๐ Using YAML mapping is deprecated, you SHOULD migrate to attributes, annotations or XML.
Gedmo\Mapping\Event\AdapterInterface::__call()
method.Gedmo\Tool\Wrapper\AbstractWrapper::clear()
method.Gedmo\Tool\Wrapper\WrapperInterface::populate()
method.
๐ Changed
- ๐ง In order to use a custom cache for storing configuration of an extension, the user has to call
setCacheItemPool()
on the extension listener passing an instance ofPsr\Cache\CacheItemPoolInterface
.