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 using Gedmo\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 of Psr\Cache\CacheItemPoolInterface.