/** If we had any validation errors in saving, log them * @return boolean from parent */ protected function afterValidate() { $arrErrors = $this->GetErrors(); if (!empty($arrErrors)) { Yii::log(print_r($arrErrors, true), 'error', __CLASS__); } return parent::afterValidate(); }