You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i was just looking if i could use an entity-listener instead of a full one (so it only needs to listen to one class anyway? not just the UserInterface?)
but it seems that such option doesn't exist for doctrine_mongodb.odm.event_listener and the ODM stuff, so it seems i still need to use the full listener for both
Environment
Sonata packages
show
Symfony packages
show
PHP version
Subject
Minimal repository with the bug
Steps to reproduce
Open a Page in Backend and use Profiler to see Deprecations
Expected results
No Deprecations
Actual results
Because of symfony/symfony#49918 and doctrine/DoctrineBundle#1664,
doctrine.event_subscriber
is deprecated and should use listener insteadShould that be done as https://symfony.com/doc/current/doctrine/events.html#doctrine-entity-listeners directly instead of listening to all entities? technically it should not look for
Sonata\UserBundle\Model\UserInterface
but forsonata.user.user.class
?for a possible MR, should i still use the php config, or should i use #[AsEntityListener] ?
The text was updated successfully, but these errors were encountered: