This commit is contained in:
2021-11-11 03:25:30 +08:00
parent f4084b0b06
commit a58b5217a8
+1 -1
View File
@@ -512,7 +512,6 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T
if (empty($param)) {
return $this;
}
var_dump($param);
foreach ($this->_attributes as $key => $attribute) {
$this->_attributes[$key] = $this->_setter($key, $attribute);
}
@@ -845,6 +844,7 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T
public function refresh(): static
{
$this->_oldAttributes = $this->_attributes;
var_dump($this->_attributes);
return $this;
}