This commit is contained in:
2026-06-30 22:46:19 +08:00
parent 5acb2f4600
commit 218a38da48
+4 -1
View File
@@ -118,9 +118,12 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq
public function __get(string $name)
{
if (method_exists($this, $name)) {
if (property_exists($this, $name)) {
return $this->$name;
}
if (method_exists($this, $name)) {
return $this->$name();
}
return parent::__get($name); // TODO: Change the autogenerated stub
}