diff --git a/README.md b/README.md index deebfed19..91bfa8c6f 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/src/Jenssegers/Mongodb/Relations/BelongsToMany.php b/src/Jenssegers/Mongodb/Relations/BelongsToMany.php index c57857638..36de393dc 100644 --- a/src/Jenssegers/Mongodb/Relations/BelongsToMany.php +++ b/src/Jenssegers/Mongodb/Relations/BelongsToMany.php @@ -265,7 +265,7 @@ protected function buildDictionary(Collection $results) /** * @inheritdoc */ - protected function newPivotQuery() + public function newPivotQuery() { return $this->newRelatedQuery(); }