diff --git a/Traits/QueryTrait.php b/Traits/QueryTrait.php index ac9a63b..1522209 100644 --- a/Traits/QueryTrait.php +++ b/Traits/QueryTrait.php @@ -116,6 +116,15 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq } + public function __get(string $name) + { + if (method_exists($this, $name)) { + return $this->$name; + } + return parent::__get($name); // TODO: Change the autogenerated stub + } + + /** * Comply constructor. * @throws