interface SupportsPartialRelations

Methods

ofMany(array|string|null $column = 'id', string|Closure|null $aggregate = 'MAX', string|null $relation = null)

Indicate that the relation is a single result of a larger one-to-many relationship.

bool
isOneOfMany()

Determine whether the relationship is a one-of-many relationship.

Builder|null
getOneOfManySubQuery()

Get the one of many inner join subselect query builder instance.

Details

at line 15
SupportsPartialRelations ofMany(array|string|null $column = 'id', string|Closure|null $aggregate = 'MAX', string|null $relation = null)

Indicate that the relation is a single result of a larger one-to-many relationship.

Parameters

array|string|null $column
string|Closure|null $aggregate
string|null $relation

Return Value

SupportsPartialRelations

at line 20
bool isOneOfMany()

Determine whether the relationship is a one-of-many relationship.

Return Value

bool

at line 25
Builder|null getOneOfManySubQuery()

Get the one of many inner join subselect query builder instance.

Return Value

Builder|null