This commit is contained in:
evgen-d 2014-08-12 11:54:47 +04:00
parent 877d42b6e4
commit 17dd5e18d3

View File

@ -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;