Unverified Commit cf15156f authored by Jens Segers's avatar Jens Segers Committed by GitHub

Merge pull request #1343 from robbytaylor/master

Fix Unable to set a custom collection for models
parents 8c17827d 91222dd3
...@@ -267,7 +267,7 @@ abstract class EmbedsOneOrMany extends Relation ...@@ -267,7 +267,7 @@ abstract class EmbedsOneOrMany extends Relation
$models = $this->eagerLoadRelations($models); $models = $this->eagerLoadRelations($models);
} }
return new Collection($models); return $this->related->newCollection($models);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment