This commit is contained in:
thinkphp
2017-01-16 11:34:53 +08:00
parent f923c9dba5
commit 771c0a90be

View File

@@ -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;
}
}