This commit is contained in:
xl
2024-07-08 12:06:41 +08:00
parent aba45e8cb9
commit d58850b158
+16
View File
@@ -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