This commit is contained in:
2021-11-11 03:39:57 +08:00
parent d7f982b44f
commit 70f3714b15
+2 -2
View File
@@ -527,8 +527,8 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T
if (empty($param) || !is_array($param)) {
return $this;
}
foreach ($this->_oldAttributes as $key => $attribute) {
$this->_oldAttributes[$key] = $this->_setter($key, $attribute);
foreach ($param as $key => $attribute) {
$this->setOldAttribute($key, $attribute);
}
return $this;
}