This commit is contained in:
2023-02-06 13:54:53 +08:00
parent f86d155059
commit 007c40a0eb
+1
View File
@@ -844,6 +844,7 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T
}
$method = 'get' . ucfirst($name) . 'Attribute';
if (!method_exists($this, $method)) {
return $value;
return $this->_decode($name, $value);
}
return $this->{$method}($value);