From e2c6c2ae46e7d379656133665bd4eb0680b01065 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Mon, 17 Apr 2023 10:59:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Collection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Collection.php b/Collection.php index fb5c69c..c260ebe 100644 --- a/Collection.php +++ b/Collection.php @@ -171,7 +171,7 @@ class Collection extends AbstractCollection $array = []; /** @var Model $value */ foreach ($this as $value) { - $array[] = $value->setWith($this->query->with)->toArray(); + $array[] = $value->toArray(); } $this->_item = []; return $array;