This commit is contained in:
2026-04-23 00:23:32 +08:00
parent fea649413c
commit c7b980d969
+6 -1
View File
@@ -736,7 +736,12 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, \
return $this->withPropertyOverride($name, $this->_oldAttributes[$name]); return $this->withPropertyOverride($name, $this->_oldAttributes[$name]);
} }
return parent::__get($name);
if (!method_exists($this, 'get' . ucfirst($name))) {
return NULL;
}
return $this->{'get' . ucfirst($name)}();
} }