mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Expose current transaction level in Driver\Connection #7230
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ro0NL on GitHub (Oct 10, 2023).
Hi,
The
onTransactionCommitevent was removed in dbal: https://github.com/doctrine/dbal/pull/5785I find myself lost in trying to recreate it using connection middlewares: #10973
Using
wrapperClassconfig i can get the doctrine event manager, as well as the current transaction level.Before proceeding with this approach, i'd like to ask if it's possible to expose the current transaction level in the driver connection.
Then i could dispatch my own event using any dispatcher.