Skip to content

Commit 25f375c

Browse files
JonathanHolveyjaviereguiluz
authored andcommitted
Add tag name for MongoDB event listener
1 parent 2aa326a commit 25f375c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doctrine/event_listeners_subscribers.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ managers that use this connection.
8585
->addTag('doctrine.event_subscriber', ['connection' => 'default'])
8686
;
8787
88+
.. tip::
89+
90+
If you're using Doctrine with MongoDB, you should use ``doctrine_mongodb.odm.event_listener``
91+
as the tag name for the event listener service.
92+
8893
Creating the Listener Class
8994
---------------------------
9095

0 commit comments

Comments
 (0)