Expose current transaction level in Driver\Connection #7230

Closed
opened 2026-01-22 15:47:34 +01:00 by admin · 0 comments
Owner

Originally created by @ro0NL on GitHub (Oct 10, 2023).

Hi,

The onTransactionCommit event was removed in dbal: https://github.com/doctrine/dbal/pull/5785

I find myself lost in trying to recreate it using connection middlewares: #10973

Using wrapperClass config 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.

Originally created by @ro0NL on GitHub (Oct 10, 2023). Hi, The `onTransactionCommit` event was removed in dbal: https://github.com/doctrine/dbal/pull/5785 I find myself lost in trying to recreate it using connection middlewares: #10973 Using `wrapperClass` config 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.
admin closed this issue 2026-01-22 15:47:35 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#7230