Browse Source

Fixes #876.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
a2b4ef0f82
  1. 1
      framework/yii/db/ActiveRecord.php

1
framework/yii/db/ActiveRecord.php

@ -889,6 +889,7 @@ class ActiveRecord extends Model
} }
$values = $this->getDirtyAttributes($attributes); $values = $this->getDirtyAttributes($attributes);
if (empty($values)) { if (empty($values)) {
$this->afterSave(false);
return 0; return 0;
} }
$condition = $this->getOldPrimaryKey(true); $condition = $this->getOldPrimaryKey(true);

Loading…
Cancel
Save