From 771c0a90be4f303e4295e36ff685c6c15827be5d Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 16 Jan 2017 11:34:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/model/Collection.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/library/think/model/Collection.php b/library/think/model/Collection.php index 81ca17a9..e44ffca6 100644 --- a/library/think/model/Collection.php +++ b/library/think/model/Collection.php @@ -24,9 +24,7 @@ class Collection extends BaseCollection public function load($relation) { $item = current($this->items); - if ($item instanceof Model) { - $item->eagerlyResultSet($this->items, $relation); - } + $item->eagerlyResultSet($this->items, $relation); return $this; } }