Jira issue originally created by user @doctrinebot:
This issue is created automatically through a Github pull request on behalf of BenMorel:
To move forward with the Transaction Object, here is an alternative proposal to #571.
This keeps the same basic idea, but now createTransaction() returns a TransactionDefinition object, which is configurable, and has a begin() method that starts the underlying transaction and returns the Transaction object:
$tx = $em->createTransaction() // TransactionDefinition
->withIsolationLevel(Connection::TRANSACTION_SERIALIZABLE) // TransactionDefinition
->begin(); // Transaction
I think that this implementation checks all the boxes:
And needless to say, we're still keeping 100% BC compatibility.
What do you think?
Comment created by @doctrinebot:
A related Github Pull-Request [GH-634] was assigned: