From aba45e8cb9d08e411c93c8135e443d5fbf5f39b5 Mon Sep 17 00:00:00 2001 From: xl Date: Mon, 8 Jul 2024 10:58:52 +0800 Subject: [PATCH] eee --- Traits/QueryTrait.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Traits/QueryTrait.php b/Traits/QueryTrait.php index fb781ad..9b5a866 100644 --- a/Traits/QueryTrait.php +++ b/Traits/QueryTrait.php @@ -63,6 +63,20 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq } + /** + * @param string $name + * @return mixed + * @throws Exception + */ + public function __get(string $name) + { + if (property_exists($this, $name)) { + return $this->$name; + } + return parent::__get($name); // TODO: Change the autogenerated stub + } + + /** * @param string $column * @param callable $callable