Commit 91222dd3 authored by Rob Taylor's avatar Rob Taylor

Fix Unable to set a custom collection for models

parent 8c17827d
...@@ -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