diff --git a/doctrine/events.rst b/doctrine/events.rst index 98dad192a79..5dacfc98b54 100644 --- a/doctrine/events.rst +++ b/doctrine/events.rst @@ -312,7 +312,7 @@ with the ``doctrine.orm.entity_listener`` tag: use App\EventListener\UserChangedNotifier; $container->autowire(UserChangedNotifier::class) - ->addTag('doctrine.orm.event_listener', [ + ->addTag('doctrine.orm.entity_listener', [ // these are the basic options that define the entity listener 'event' => 'postUpdate', 'entity' => User::class,