Change `EloquentAdapter` to load relationships using `load` instead of `loadMissing`, as they may need API-specific scopes applied
This commit is contained in:
parent
34f719e963
commit
6183f012f6
|
|
@ -34,7 +34,7 @@ abstract class EloquentBuffer
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Collection::make($models)->loadMissing([
|
Collection::make($models)->load([
|
||||||
$relationName => function ($relation) use ($model, $relationName, $relationship, $context) {
|
$relationName => function ($relation) use ($model, $relationName, $relationship, $context) {
|
||||||
$query = $relation->getQuery();
|
$query = $relation->getQuery();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue