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 af2be8c commit 4a9aab7Copy full SHA for 4a9aab7
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