From d58850b1586893c5a43dac1832d59b73e04947e4 Mon Sep 17 00:00:00 2001 From: xl Date: Mon, 8 Jul 2024 12:06:41 +0800 Subject: [PATCH] eee --- Traits/QueryTrait.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Traits/QueryTrait.php b/Traits/QueryTrait.php index 9b5a866..7867282 100644 --- a/Traits/QueryTrait.php +++ b/Traits/QueryTrait.php @@ -77,6 +77,22 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq } + /** + * @param string $name + * @param $value + * @return void + * @throws Exception + */ + public function __set(string $name, $value): void + { + if (property_exists($this, $name)) { + $this->{$name} = $value; + } else { + parent::__set($name, $value); // TODO: Change the autogenerated stub + } + } + + /** * @param string $column * @param callable $callable