mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-25 03:01:21 +08:00
Fixes #4135
This commit is contained in:
@@ -716,7 +716,7 @@ abstract class BaseActiveRecord extends Model implements ActiveRecordInterface
|
||||
|
||||
$changedAttributes = [];
|
||||
foreach ($values as $name => $value) {
|
||||
$changedAttributes[$name] = $this->_oldAttributes[$name];
|
||||
$changedAttributes[$name] = isset($this->_oldAttributes[$name]) ? $this->_oldAttributes[$name] : null;
|
||||
$this->_oldAttributes[$name] = $value;
|
||||
}
|
||||
$this->afterSave(false, $changedAttributes);
|
||||
|
||||
Reference in New Issue
Block a user