Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d58850b158 | |||
| aba45e8cb9 |
@@ -63,6 +63,36 @@ 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 $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 string $column
|
||||||
* @param callable $callable
|
* @param callable $callable
|
||||||
|
|||||||
Reference in New Issue
Block a user