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 1c4726b commit 5a43ecbCopy full SHA for 5a43ecb
src/Jenssegers/Mongodb/Relations/MorphTo.php
@@ -31,7 +31,7 @@ protected function getResultsByType($type)
31
32
$query = $instance->newQuery();
33
34
- return $query->whereIn($key, $this->gatherKeysByType($type))->get();
+ return $query->whereIn($key, $this->gatherKeysByType($type, $instance->getKeyType()))->get();
35
}
36
37
/**
0 commit comments