Doctrine Lifecycle Subscribers have been abandoned in Symfony 6.4, which is why we can't use this technique anymore. Instead we revert some changes from fe96e075 and declare Lifecycle Listeners.
When then should switch back thoroughly, clean up the unused method and avoid potentially wiring it twice (as a listener and subscriber) – see c8fc79b2a47badbdb586b2a831c3ee89fc80db1f.
Doctrine Lifecycle Subscribers have been abandoned in Symfony 6.4, which is why we can't use this technique anymore. Instead we revert some changes from fe96e075 and declare Lifecycle Listeners.