From 25f375cb28c6c144a53194846f61585ca3c98532 Mon Sep 17 00:00:00 2001 From: Jonathan Holvey Date: Tue, 18 Jun 2019 16:29:54 +1000 Subject: [PATCH] Add tag name for MongoDB event listener --- doctrine/event_listeners_subscribers.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doctrine/event_listeners_subscribers.rst b/doctrine/event_listeners_subscribers.rst index 87833fd90c9..b43b827684a 100644 --- a/doctrine/event_listeners_subscribers.rst +++ b/doctrine/event_listeners_subscribers.rst @@ -85,6 +85,11 @@ managers that use this connection. ->addTag('doctrine.event_subscriber', ['connection' => 'default']) ; +.. tip:: + + If you're using Doctrine with MongoDB, you should use ``doctrine_mongodb.odm.event_listener`` + as the tag name for the event listener service. + Creating the Listener Class ---------------------------