This commit is contained in:
2026-04-23 00:20:00 +08:00
parent 959407a95e
commit fea649413c
+2 -6
View File
@@ -729,15 +729,11 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, \
public function __get(string $name): mixed
{
if (isset($this->_attributes[$name])) {
$value = $this->_attributes[$name] ?? NULL;
return $this->withPropertyOverride($name, $value);
return $this->withPropertyOverride($name, $this->_attributes[$name]);
}
if (isset($this->_oldAttributes[$name])) {
$value = $this->_oldAttributes[$name] ?? NULL;
return $this->withPropertyOverride($name, $value);
return $this->withPropertyOverride($name, $this->_oldAttributes[$name]);
}
return parent::__get($name);