Releases: doctrine-extensions/DoctrineExtensions
Releases · doctrine-extensions/DoctrineExtensions
v3.18.0
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 inTranslationWalker
(issue #2887) - Tree: allow usage of UuidV4 as path source with the materialized path strategy
v3.17.1
v3.17.0
v3.16.1
v3.16.0
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 implementTranslatable
interface and haveuniqueOverTranslations: 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
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 newDateTimeInterface
objects (SoftDeleteable and Timestampable)
Changed
- Make doctrine/annotations an optional dependency.
- Remove
@internal
annotation fromGedmo\Mapping\Driver\AttributeReader
.
Deprecated
- Do not add type-hinted parameters
Gedmo\SoftDeleteable\Event\PreSoftDeleteEventArgs
and
Gedmo\SoftDeleteable\Event\PostSoftDeleteEventArgs
classes topreSoftDelete
andpostSoftDelete
events. - The
createLifecycleEventArgsInstance()
method onGedmo\Mapping\Event\AdapterInterface
implementations is deprecated, use your own subclass ofDoctrine\Persistence\Event\LifecycleEventArgs
as needed.
Fixed
- Add conflict against "doctrine/orm" >= 3.
- Add conflict against "doctrine/dbal" => 4.
v3.14.0
Added
- Support for Symfony 7
- Tree: Added
@template
and@template-extends
annotations 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 theNode
interface through the BC@method
annotation - Tree: Support array of fields and directions in the
$sortByField
and$direction
parameters atAbstractTreeRepository::recover()
- Loggable: Support for composite identifiers
Changed
- Named arguments have precedence over the values passed in the
$data
array 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()
(fromTranslationProxy
tovoid
)
Fixed
- Tree: Creation of dynamic
Node::$sibling
property, 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
Node
interface 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