| Methods |
public
|
withoutSelf(): static
|
#
|
public
|
withSelf(): static
|
#
|
public
|
match(array<int, Model> $models, Collection<int, TRelatedModel> $results, string $relation): array<int, Model>
Match the eagerly loaded results to their parents.
Match the eagerly loaded results to their parents.
|
#
|
protected
|
excludeSelfFromMatchesIfExcluded(array<int, Model> $models, string $relation): array<int, Model>
|
#
|
public
|
getRelationExistenceQueryForSelfRelation(
Builder<TRelatedModel> $query,
Builder<TDeclaringModel> $parentQuery,
mixed $columns = ['*'],
): Builder<TRelatedModel>
Add the constraints for a relationship query on the same table.
Add the constraints for a relationship query on the same table.
|
#
|
public
|
getRelationExistenceQueryForSelfJoin(
Builder<TRelatedModel> $query,
Builder<TDeclaringModel> $parentQuery,
mixed $columns = ['*'],
): Builder<TRelatedModel>
Add the constraints for a relationship query on the same table.
Add the constraints for a relationship query on the same table.
|
#
|
protected
|
excludeSelfFromRelationExistenceQueryIfExcluded(
Builder<TRelatedModel> $query,
Builder<TDeclaringModel> $parentQuery,
): Builder<TRelatedModel>
|
#
|