Skip to content

Commit 5354104

Browse files
committed
minor #11770 Add tag name for MongoDB event listener (JonathanHolvey)
This PR was submitted for the 4.3 branch but it was merged into the 3.4 branch instead (closes #11770). Discussion ---------- Add tag name for MongoDB event listener I spent a couple of hours today trying to work out why my event listener wasn't working. It turns out that the tag name for the event listener service is different when using MongoDB, and it would be really useful to have this referenced in the documentation. Commits ------- 25f375c Add tag name for MongoDB event listener
2 parents 2aa326a + 25f375c commit 5354104

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)