We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a9aab7 commit 6a2437cCopy full SHA for 6a2437c
src/Relations/MorphToMany.php
@@ -86,7 +86,7 @@ protected function setWhere()
86
->whereIn($this->foreignPivotKey, (array) $this->parent->{$this->parentKey});
87
}
88
} else {
89
- match ($this->parent instanceof \MongoDB\Laravel\Eloquent\Model){
+ match ($this->parent instanceof \MongoDB\Laravel\Eloquent\Model) {
90
true => $this->query->whereIn($this->relatedKey, (array) $this->parent->{$this->relatedPivotKey}),
91
false => $this->query
92
->whereIn($this->getQualifiedForeignPivotKeyName(), (array) $this->parent->{$this->parentKey}),
0 commit comments