From 17dd5e18d3c887a7182df8b791590d8aae691f0d Mon Sep 17 00:00:00 2001 From: evgen-d Date: Tue, 12 Aug 2014 11:54:47 +0400 Subject: [PATCH] fix save --- ActiveRecord.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;