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
lisadeloach63 committed Sep 30, 2020
1 parent 20c9720 commit 04405f7
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 04405f7

Please sign in to comment.