From 7ec76f153a2e4cb3dd9e5e379359170f81e24833 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Mon, 23 Sep 2019 16:37:19 +0200 Subject: [PATCH] Fixed the order of Doctrine middleware in Messenger component --- messenger.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/messenger.rst b/messenger.rst index 218c3c028b4..1c4f8c06d91 100644 --- a/messenger.rst +++ b/messenger.rst @@ -1376,11 +1376,6 @@ may want to use: buses: command_bus: middleware: - # wraps all handlers in a single Doctrine transaction - # handlers do not need to call flush() and an error - # in any handler will cause a rollback - - doctrine_transaction - # each time a message is handled, the Doctrine connection # is "pinged" and reconnected if it's closed. Useful # if your workers run for a long time and the database @@ -1392,6 +1387,11 @@ may want to use: # instead of keeping them open forever - doctrine_close_connection + # wraps all handlers in a single Doctrine transaction + # handlers do not need to call flush() and an error + # in any handler will cause a rollback + - doctrine_transaction + # or pass a different entity manager to any #- doctrine_transaction: ['custom']