Methods |
abstract
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.
|
#
|
abstract
public
|
getOneOfManySubQuerySelectColumns(): array|string
Get the columns the determine the relationship groups.
Get the columns the determine the relationship groups.
|
#
|
abstract
public
|
addOneOfManyJoinSubQueryConstraints(JoinClause $join): void
Add join query constraints for one of many relationships.
Add join query constraints for one of many relationships.
|
#
|
public
|
ofMany(string|array|null $column = 'id', string|Closure|null $aggregate = 'MAX', string|null $relation = null): $this
Indicate that the relation is a single result of a larger one-to-many relationship.
Indicate that the relation is a single result of a larger one-to-many relationship.
Throws
|
#
|
public
|
latestOfMany(string|array|null $column = 'id', string|null $relation = null): $this
Indicate that the relation is the latest single result of a larger one-to-many relationship.
Indicate that the relation is the latest single result of a larger one-to-many relationship.
|
#
|
public
|
oldestOfMany(string|array|null $column = 'id', string|null $relation = null): $this
Indicate that the relation is the oldest single result of a larger one-to-many relationship.
Indicate that the relation is the oldest single result of a larger one-to-many relationship.
|
#
|
public
|
getOneOfManySubQuery(): Builder|void
Get the one of many inner join subselect builder instance.
Get the one of many inner join subselect builder instance.
|
#
|
public
|
qualifySubSelectColumn(string $column): string
Get the qualified column name for the one-of-many relationship using the subselect join query's alias.
Get the qualified column name for the one-of-many relationship using the subselect join query's alias.
|
#
|
public
|
isOneOfMany(): bool
Determine whether the relationship is a one-of-many relationship.
Determine whether the relationship is a one-of-many relationship.
|
#
|
public
|
getRelationName(): string
Get the name of the relationship.
Get the name of the relationship.
|
#
|