From 218a38da4876a715ecf68c2834a171c408f488d4 Mon Sep 17 00:00:00 2001 From: whwyy Date: Tue, 30 Jun 2026 22:46:19 +0800 Subject: [PATCH] eee --- Traits/QueryTrait.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Traits/QueryTrait.php b/Traits/QueryTrait.php index 1522209..201bfeb 100644 --- a/Traits/QueryTrait.php +++ b/Traits/QueryTrait.php @@ -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 }