Skip to content

Commit 0804ab2

Browse files
committed
Fix missing new Collection
1 parent a4699dc commit 0804ab2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Jenssegers/Mongodb/Query/Builder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ public function getFresh($columns = [], $returnLazy = false)
338338
$results = iterator_to_array($this->collection->aggregate($pipeline, $options));
339339

340340
// Return results
341-
return Collection($results);
341+
return new Collection($results);
342342
} // Distinct query
343343
elseif ($this->distinct) {
344344
// Return distinct results directly

0 commit comments

Comments
 (0)