Change `EloquentAdapter` to load relationships using `load` instead of `loadMissing`, as they may need API-specific scopes applied

This commit is contained in:
Toby Zerner 2021-09-03 09:49:08 +10:00
parent 34f719e963
commit 6183f012f6
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ abstract class EloquentBuffer
return;
}
Collection::make($models)->loadMissing([
Collection::make($models)->load([
$relationName => function ($relation) use ($model, $relationName, $relationship, $context) {
$query = $relation->getQuery();