- ๐ฎ๐นItaly mondrake ๐ฎ๐น
Did not see this before, thereโs now a MR for this built on top of the new TransactionManager in D10.2
This is a fork from this issue. Based on the snippet from Database abstraction layer shown below, a commit will be done automatically when $txn goes out of scope.
function my_transaction_function() {
// The transaction opens here.
$txn = db_transaction();
.
.
.
// $txn goes out of scope here. Unless the transaction was rolled back, it
// gets automatically commited here.
}
It doesn't feel quite right to have commit as the default action because:
Needs work
11.0 ๐ฅ
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Did not see this before, thereโs now a MR for this built on top of the new TransactionManager in D10.2