Methods |
public
|
getResults(): mixed
Get the results of the relationship.
Get the results of the relationship.
Implements
|
#
|
public
|
initRelation(array $models, string $relation): array
Initialize the relation on a set of models.
Initialize the relation on a set of models.
Implements
|
#
|
public
|
match(array $models, Collection $results, string $relation): array
Match the eagerly loaded results to their parents.
Match the eagerly loaded results to their parents.
Implements
|
#
|
public
|
getRelationExistenceQuery(Builder $query, Builder $parentQuery, array|mixed $columns = ['*']): Builder
Get the relationship query.
Get the relationship query.
Overrides
|
#
|
public
|
addOneOfManySubQueryConstraints(Builder $query, string|null $column = null, string|null $aggregate = null): void
Add constraints for inner join subselect for one of many relationships.
Add constraints for inner join subselect for one of many relationships.
|
#
|
public
|
getOneOfManySubQuerySelectColumns(): array|string
Get the columns that should be selected by the one of many subquery.
Get the columns that should be selected by the one of many subquery.
|
#
|
public
|
addOneOfManyJoinSubQueryConstraints(JoinClause $join): void
Add join query constraints for one of many relationships.
Add join query constraints for one of many relationships.
|
#
|
public
|
newRelatedInstanceFor(Model $parent): Model
Make a new related instance for the given model.
Make a new related instance for the given model.
|
#
|