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);
if (empty($values)) {
$this->afterSave(false);
return 0;
}
$condition = $this->getOldPrimaryKey(true);

Loading…
Cancel
Save