Skip to content

Releases: doctrine-extensions/DoctrineExtensions

v3.21.0

22 Sep 17:07
v3.21.0

Choose a tag to compare

Added

  • SoftDeleteable: $handlePostFlushEvent parameter to SoftDeleteableListener::__construct() to enable or disable handling of the postFlush event (#2958)

Changed

  • Translatable: Optimized database indexes for better performance by reordering unique constraint fields and removing redundant indexes
  • SoftDeleteable: Handling of the postFlush event is disabled by default (#2958)
  • Sluggable: Replaced abandoned behat/transliterator with symfony/string for default transliteration and urlization steps (#2985)
  • Use ClassMetadata::getFieldValue() and ClassMetadata::setFieldValue() methods to support doctrine/orm >= 3.4 (#2966)

Fixed

  • SoftDeleteable: Prevent cascade persist from re-inserting soft-deleted entities still referenced in the identity map (#2958)
  • Sluggable: Fix type error when generating slug using embedded properties (#2965)

v3.20.1

14 Sep 06:42
v3.20.1

Choose a tag to compare

Fixed

  • Compatibility with doctrine/mongodb-odm ^2.11 (#2945)

v3.20.0

04 Apr 17:20
v3.20.0

Choose a tag to compare

Fixed

  • SoftDeleteable: Resolved a bug where a soft-deleted object isn't remove from the ObjectManager (#2930)

Added

  • IP address provider for use with extensions with IP address references (#2928)

v3.19.0

24 Feb 22:14
v3.19.0

Choose a tag to compare

Added

  • Actor provider for use with extensions with user references (#2914)

Changed

  • Updated minimum versions for doctrine/orm to ^2.20 || ^3.3

Fixed

  • Regression with doctrine/orm ^2.20 || ^3.3 that caused the translation walker to produce queries with duplicated LIMIT clauses (issue #2917)

v3.18.0

01 Feb 22:30
v3.18.0

Choose a tag to compare

Added

  • Support for doctrine/persistence ^4.0

Deprecated

  • Sluggable: Annotation-specific mapping parameters (#2837)

Fixed

  • Fix regression with doctrine/dbal >= 4.0 that caused MariaDB to improperly attempt LONGTEXT casting in TranslationWalker (issue #2887)
  • Tree: allow usage of UuidV4 as path source with the materialized path strategy

v3.17.1

07 Oct 22:31
v3.17.1

Choose a tag to compare

Fixed

  • Removed invalid @note annotation from AbstractLogEntry::$data, which was causing issues in projects using annotation parsers

v3.17.0

06 Oct 23:40
v3.17.0

Choose a tag to compare

Added

  • Support for doctrine/dbal >= 4.0 with all extensions, except Loggable

Changed

  • Extend Throwable from Gedmo\Exception interface

v3.16.1

25 Jun 16:22

Choose a tag to compare

Fixed

  • Restructure the SqlWalkerCompat trait to fix optimized autoloading

v3.16.0

24 Jun 18:30

Choose a tag to compare

Added

  • Support for doctrine/orm 3
  • Blameable: Added UUID in allowed types list for Blameable fields in Annotation
  • Blameable: Allow ascii_string to validTypes (issue #2726)
  • Sluggable: Allow ascii_string to validTypes
  • IpTraceable: Allow ascii_string to validTypes
  • Sluggable: Use TranslationWalker hint when looking for similar slugs (getSimilarSlugs method) for entities which implement Translatable interface and have uniqueOverTranslations: true Slug option (#100, #2530)

Deprecated

  • Support for defining mapping information from annotations has been deprecated and will be removed in 4.0, use PHP attributes mapping instead.

Fixed

  • Tree: Cascade remove not being triggered on entity children at MaterializedPath::removeNode().
  • Tree: Materialize Path strategy when using autogenerated identifiers.

v3.15.0

12 Feb 15:20

Choose a tag to compare

Added

  • SoftDeleteable: Gedmo\SoftDeleteable\Event\PreSoftDeleteEventArgs and
    Gedmo\SoftDeleteable\Event\PostSoftDeleteEventArgs classes.
  • Add support for injecting a psr/clock implementation into event adapters
    that create new DateTimeInterface objects (SoftDeleteable and Timestampable)

Changed

  • Make doctrine/annotations an optional dependency.
  • Remove @internal annotation from Gedmo\Mapping\Driver\AttributeReader.

Deprecated

  • Do not add type-hinted parameters Gedmo\SoftDeleteable\Event\PreSoftDeleteEventArgs and
    Gedmo\SoftDeleteable\Event\PostSoftDeleteEventArgs classes to preSoftDelete and postSoftDelete events.
  • The createLifecycleEventArgsInstance() method on Gedmo\Mapping\Event\AdapterInterface
    implementations is deprecated, use your own subclass of Doctrine\Persistence\Event\LifecycleEventArgs as needed.

Fixed

  • Add conflict against "doctrine/orm" >= 3.
  • Add conflict against "doctrine/dbal" => 4.