interface SupportsPartialRelations (View source)

Methods

$this
ofMany(string|null $column = 'id', string|Closure|null $aggregate = 'MAX', string $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|void
getOneOfManySubQuery()

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

Details

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

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

Parameters

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

Return Value

$this

bool isOneOfMany()

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

Return Value

bool

Builder|void getOneOfManySubQuery()

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

Return Value

Builder|void