Skip to content

Commit

Permalink
Added model className to rules errors log, bug fix implode()
Browse files Browse the repository at this point in the history
  • Loading branch information
fiSCIENCES committed Oct 30, 2024
1 parent b95dd44 commit bf9d0a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ARImportStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function import(&$data) {
if ($this->isActiveRecordUnique($uniqueAttributes) && $model->save()) {
$importedPks[] = $model->primaryKey;
} else {
Yii::warning($model->tableName() . ': ' . $model->getErrorSummary(true));
Yii::warning($model->tableName() . ': ' . implode(',', $model->getErrorSummary(true)));
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion ARUpdateStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ protected function updateRecord($row, $values) {
if($model->save()) {
return true;
} else {
Yii::warning($model->tableName() . ': ' . $model->getErrorSummary(true));
Yii::warning($model->tableName() . ': ' . implode(',', $model->getErrorSummary(true)));
return false;
}
} else {
Expand Down

0 comments on commit bf9d0a7

Please sign in to comment.