Skip to content

Commit d28b663

Browse files
committed
Fix breaking change for morphto
Breaking change in minor release laravel/framework#34531
1 parent 364d6c7 commit d28b663

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Jenssegers/Mongodb/Relations/MorphTo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ protected function getResultsByType($type)
3131

3232
$query = $instance->newQuery();
3333

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

3737
/**

0 commit comments

Comments
 (0)