Skip to content

[3.7] Laravel 7 support #2097

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 14, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix missing new Collection
  • Loading branch information
divine committed Sep 14, 2020
commit 0804ab20635dfbe9f5d3de5d034bab980339256a
2 changes: 1 addition & 1 deletion src/Jenssegers/Mongodb/Query/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ public function getFresh($columns = [], $returnLazy = false)
$results = iterator_to_array($this->collection->aggregate($pipeline, $options));

// Return results
return Collection($results);
return new Collection($results);
} // Distinct query
elseif ($this->distinct) {
// Return distinct results directly
Expand Down