Skip to content

Commit 341f9dd

Browse files
committed
Update QueryBuilder get method to run getFresh method
Following the latest update of the laravel framework (5.1.20), the BaseQuery builder that used to just run the getFresh method (overriden by the mongodb child builder) in the get function, now calls the runSelect method that relies on the mysql Grammar object being present that this builder does not need to run. This update simply removes the parent get() call and directly calls it's own getFresh method, thus return the functionality to what it was before the laravel update.
1 parent cd542dc commit 341f9dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Jenssegers/Mongodb/Query/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public function find($id, $columns = [])
147147
*/
148148
public function get($columns = [])
149149
{
150-
return parent::get($columns);
150+
return $this->getFresh($columns);
151151
}
152152

153153
/**

0 commit comments

Comments
 (0)