protected function processSave($event = '')
{
$this->dbStartTransaction();
try {
if ($this->save()) {
$this->dbCommitTransaction();
if ($event) {
$this->fireEvent($event, ['transaction' => $this]);
}
return $this;
}
} catch (\Exception $e) {
$this->dbRollbackTransaction();
}
return false;
}