Make deletion atomic using transactions even in case of recursive deletions

This commit is contained in:
2019-05-23 18:05:16 +02:00
parent e6db7787ef
commit 7bf2386851
2 changed files with 6 additions and 6 deletions

View File

@@ -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);
}
/**