protected function startTransaction() { return \Yii::app()->db->getCurrentTransaction() === null ? \Yii::app()->db->beginTransaction() : null; }