protected function commitTransaction() { try { $this->getTransaction()->commit(); } catch (\CDbException $e) { $this->addError($e->getMessage()); } }