DoctrineExtensions icon indicating copy to clipboard operation
DoctrineExtensions copied to clipboard

[SoftDeleteable] Deprecated `LifecycleEventArgs`

Open misaert opened this issue 2 years ago • 4 comments

Hi,

It seems doctrine/orm with version 2.14 deprecates the use of the class Doctrine\ORM\Event\LifecycleEventArgs. It will be removed in ORM 3.0. (see changelog)

I think it will affect the SoftDeleteable behavior. Right?

Thanks,

Mickaël

misaert avatar Dec 28 '22 15:12 misaert

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jul 14 '23 09:07 github-actions[bot]

Hi,

Is it affect SoftDeleteable behavior?

Thank you,

Mickaël

misaert avatar Jul 14 '23 09:07 misaert

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jan 10 '24 11:01 github-actions[bot]

Up.

misaert avatar Jan 11 '24 15:01 misaert

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jul 09 '24 16:07 github-actions[bot]

Up again 😄

misaert avatar Jul 09 '24 17:07 misaert

This was fixed with 3.15. There's a B/C layer for event listeners with a typehint to the deprecated ORM event class, otherwise, the Gedmo\SoftDeleteable\Event\PreSoftDeleteEventArgs and Gedmo\SoftDeleteable\Event\PostSoftDeleteEventArgs classes should be used in listeners going forward.

mbabker avatar Jul 09 '24 18:07 mbabker

Oh right :+1:

Related links:

  • https://github.com/doctrine-extensions/DoctrineExtensions/issues/2648
  • https://github.com/doctrine-extensions/DoctrineExtensions/pull/2649
  • https://github.com/doctrine-extensions/DoctrineExtensions/releases/tag/v3.15.0

misaert avatar Jul 16 '24 07:07 misaert