diff --git a/ActiveRecord.php b/ActiveRecord.php index 3cfbff4..9f7c07b 100644 --- a/ActiveRecord.php +++ b/ActiveRecord.php @@ -186,7 +186,7 @@ abstract class ActiveRecord extends BaseActiveRecord $this->setIsNewRecord(false); $changedAttributes = array_fill_keys(array_keys($values), null); - $this->setOldAttributes($values); + $this->setOldAttributes($this->getAttributes()); $this->afterSave(true, $changedAttributes); return true;