This commit is contained in:
2021-08-05 17:57:15 +08:00
parent 1d585313bc
commit 6ed54f3d8c
+1 -1
View File
@@ -830,7 +830,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
public function __get($name): mixed
{
$method = 'get' . ucfirst($name);
if (!method_exists($this, $method)) {
if (method_exists($this, $method)) {
return $this->{$method}();
}
if (isset($this->_attributes[$name])) {