From 80620e181b1ee5afdde3aee76dbd6d486a009f4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 25 Feb 2022 16:25:32 +0800 Subject: [PATCH] modify plugin name --- ActiveQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);