fix save
This commit is contained in:
parent
877d42b6e4
commit
17dd5e18d3
|
@ -186,7 +186,7 @@ abstract class ActiveRecord extends BaseActiveRecord
|
||||||
$this->setIsNewRecord(false);
|
$this->setIsNewRecord(false);
|
||||||
|
|
||||||
$changedAttributes = array_fill_keys(array_keys($values), null);
|
$changedAttributes = array_fill_keys(array_keys($values), null);
|
||||||
$this->setOldAttributes($values);
|
$this->setOldAttributes($this->getAttributes());
|
||||||
$this->afterSave(true, $changedAttributes);
|
$this->afterSave(true, $changedAttributes);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue