Skip to content

Commit

Permalink
Fix breaking change for morphto
Browse files Browse the repository at this point in the history
Breaking change in minor release laravel/framework#34531
  • Loading branch information
divine authored Sep 30, 2020
1 parent 1c4726b commit 5a43ecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Jenssegers/Mongodb/Relations/MorphTo.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected function getResultsByType($type)

$query = $instance->newQuery();

return $query->whereIn($key, $this->gatherKeysByType($type))->get();
return $query->whereIn($key, $this->gatherKeysByType($type, $instance->getKeyType()))->get();
}

/**
Expand Down

0 comments on commit 5a43ecb

Please sign in to comment.