diff --git a/ActiveQuery.php b/ActiveQuery.php index 1c3c148..d74b49b 100644 --- a/ActiveQuery.php +++ b/ActiveQuery.php @@ -255,7 +255,7 @@ class ActiveQuery extends Component implements ISqlBuilder */ public function getWith(ModelInterface $model): ModelInterface { - if (empty($this->with) || !is_array($this->with)) { + if (empty($this->with)) { return $model; } return $model->setWith($this->with);