Skip to content

Commit 4a9aab7

Browse files
committed
Trigger pipeline;
1 parent af2be8c commit 4a9aab7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Relations/MorphToMany.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ protected function setWhere()
8686
->whereIn($this->foreignPivotKey, (array) $this->parent->{$this->parentKey});
8787
}
8888
} else {
89-
match ($this->parent instanceof \MongoDB\Laravel\Eloquent\Model) {
89+
match ($this->parent instanceof \MongoDB\Laravel\Eloquent\Model){
9090
true => $this->query->whereIn($this->relatedKey, (array) $this->parent->{$this->relatedPivotKey}),
9191
false => $this->query
9292
->whereIn($this->getQualifiedForeignPivotKeyName(), (array) $this->parent->{$this->parentKey}),

0 commit comments

Comments
 (0)