Transaction watchers for Default DBAL Connection
Sometimes it is required to perform some work only after data are committed to the database. For instance, sending notifications to users or to the external systems.
In this case you can create a class that implements
and register it as a service tagged by the
oro.doctrine.connection.transaction_watcher tag. Afterwards, this class
will be able to perform some actions after the root transaction for default DBAL connection starts, committed
or rolled back. Please note that methods of this class will be called for the root transaction only; starting,
committing and rolling back of any nested transaction are not tracked.