fix save
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user