Skip to content


DBAL-225: Add events for onBeginTransaction, onCommit, onCommitFailure #1400

doctrinebot opened this Issue · 2 comments

2 participants


Jira issue originally created by user @beberlei:

Allow to switch a CommitFailure into a successful event.

This could be done by saving all insert/update/delete statements starting from begin transaction and then replaying them N-times until success is achieved.


Comment created by deatheriam:



Comment created by backbone:

just replay the statements used in a transaction isnt very useful!

the whole purpose of (write) transaction is that your writes are consistent with your reads.
if you start a new transaction and execute just your DMLs again than these DMLs rely on now inconsistent reads from a previous (failed) transaction.
thats basically the gist of a failed transaction: the attempted writes would cause inconsistencies with the already done reads.

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.6 milestone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.