class HasManyThrough extends HasManyThrough

Adapted from october\rain\database\relations\HasManyThrough

Traits

Properties

protected string $relationName

Methods

void
addDefinedConstraints()

Set the defined constraints on the relation query.

addDefinedConstraintsToRelation(Relation $relation, array $args = null)

Add relation based constraints.

addDefinedConstraintsToQuery(Builder $query, array $args = null)

Add query based constraints.

void
__construct(Builder $query, Model $farParent, Model $parent, $firstKey, $secondKey, $localKey, $secondLocalKey, $relationName = null)

Create a new has many relationship instance.

bool
parentSoftDeletes()

Determine whether close parent of the relation uses Soft Deletes.

Details

in DefinedConstraints at line 20
void addDefinedConstraints()

Set the defined constraints on the relation query.

Return Value

void

in DefinedConstraints at line 35
addDefinedConstraintsToRelation(Relation $relation, array $args = null)

Add relation based constraints.

Parameters

Relation $relation
array $args

in DefinedConstraints at line 85
addDefinedConstraintsToQuery(Builder $query, array $args = null)

Add query based constraints.

Parameters

Builder $query
array $args

at line 25
void __construct(Builder $query, Model $farParent, Model $parent, $firstKey, $secondKey, $localKey, $secondLocalKey, $relationName = null)

Create a new has many relationship instance.

Parameters

Builder $query
Model $farParent
Model $parent
$firstKey
$secondKey
$localKey
$secondLocalKey
$relationName

Return Value

void

at line 39
bool parentSoftDeletes()

Determine whether close parent of the relation uses Soft Deletes.

Return Value

bool