public
|
match(
array<int, TDeclaringModel> $models,
Collection<int, TRelatedModel> $results,
string $relation,
): array<int, TDeclaringModel>
Match the eagerly loaded results to their parents.
Match the eagerly loaded results to their parents.
|
#
|
protected
|
matchOtherRelation(
array<int, TDeclaringModel> $models,
Collection<int, TRelatedModel> $results,
string $relation,
): array
On $this, and on each of the related models that were loaded by
a "through-closures" relation (eg. "ancestors"), load…
On $this, and on each of the related models that were loaded by
a "through-closures" relation (eg. "ancestors"), load the corresponding
"closed" relation (eg. "parent").
|
#
|