Make deletion atomic using transactions even in case of recursive deletions
This commit is contained in:
@@ -344,11 +344,11 @@ abstract class AbstractCommonClubsModel
|
||||
$q->delete($factory->getTableName());
|
||||
$q->where("id = {$this->id}");
|
||||
|
||||
$db->transactionStart();
|
||||
$db->transactionStart(true);
|
||||
$this->prepareDelete($db);
|
||||
$db->setQuery($q);
|
||||
$db->execute();
|
||||
$db->transactionCommit();
|
||||
$db->transactionCommit(true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user