diff --git a/Traits/QueryTrait.php b/Traits/QueryTrait.php index e35bf05..524e084 100644 --- a/Traits/QueryTrait.php +++ b/Traits/QueryTrait.php @@ -46,10 +46,14 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq /** * @var ModelInterface|string|null */ - protected ModelInterface|string|null $modelClass; + protected ModelInterface|string|null $modelClass { + get { + return $this->modelClass; + } + } - /** + /** * Comply constructor. * @throws */ @@ -63,7 +67,7 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq } - /** + /** * @param array $where * * @return void