Skip to content

Commit

Permalink
Merge pull request #1979 from divine/fix_make_pivot_public
Browse files Browse the repository at this point in the history
[fix] Make newPivotQuery function public
  • Loading branch information
Smolevich authored Mar 4, 2020
2 parents 01dfe3c + 27acb90 commit 279b18c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Make sure you have the MongoDB PHP driver installed. You can find installation i
5.6.x | 3.4.x
5.7.x | 3.4.x
5.8.x | 3.5.x
6.0.x | 3.6.x
6.x | 3.6.x

Install the package via Composer:

Expand Down
2 changes: 1 addition & 1 deletion src/Jenssegers/Mongodb/Relations/BelongsToMany.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ protected function buildDictionary(Collection $results)
/**
* @inheritdoc
*/
protected function newPivotQuery()
public function newPivotQuery()
{
return $this->newRelatedQuery();
}
Expand Down

0 comments on commit 279b18c

Please sign in to comment.