From 4a951a35672a4bd499f84e059e735cde7696d5e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 19 Oct 2021 18:27:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ActiveQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ActiveQuery.php b/src/ActiveQuery.php index 3f8841d..07feb65 100644 --- a/src/ActiveQuery.php +++ b/src/ActiveQuery.php @@ -199,7 +199,7 @@ class ActiveQuery extends Component implements ISqlBuilder { $data = $this->execute($this->builder->all())->all(); if (!empty($this->with)){ - $this->modelClass->setWith($this->with); + $this->getWith($this->modelClass); } $collect = new Collection($this, $data, $this->modelClass); if ($this->asArray) {