diff --git a/ARImportStrategy.php b/ARImportStrategy.php index 794f367..612d570 100644 --- a/ARImportStrategy.php +++ b/ARImportStrategy.php @@ -83,7 +83,7 @@ public function import(&$data) { if ($this->isActiveRecordUnique($uniqueAttributes) && $model->save()) { $importedPks[] = $model->primaryKey; } else { - Yii::warning($model->getErrorSummary(true)); + Yii::warning($model->tableName() . ': ' . $model->getErrorSummary(true)); } } } diff --git a/ARUpdateStrategy.php b/ARUpdateStrategy.php index 4b381a2..728c71e 100644 --- a/ARUpdateStrategy.php +++ b/ARUpdateStrategy.php @@ -36,7 +36,7 @@ protected function updateRecord($row, $values) { if($model->save()) { return true; } else { - Yii::warning($model->getErrorSummary(true)); + Yii::warning($model->tableName() . ': ' . $model->getErrorSummary(true)); return false; } } else {