This commit is contained in:
2021-11-10 11:33:15 +08:00
parent d60799d5a4
commit d3bb5e851f
+3 -1
View File
@@ -511,7 +511,9 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T
if (empty($param)) { if (empty($param)) {
return $this; return $this;
} }
$this->_attributes = array_merge($this->_attributes, $param); foreach ($param as $key => $value) {
$this->_setter($key, $value);
}
return $this; return $this;
} }