HasManyThrough
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.
from
DefinedConstraints
addDefinedConstraintsToRelation(Relation $relation, array $args = null)
Add relation based constraints.
from
DefinedConstraints
from
DefinedConstraints
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.
in
DefinedConstraints at line 35
addDefinedConstraintsToRelation(Relation $relation, array $args = null)
Add relation based constraints.
in
DefinedConstraints at line 85
addDefinedConstraintsToQuery(Builder $query, array $args = null)
Add query based constraints.
at line 25
void
__construct(Builder $query, Model $farParent, Model $parent, $firstKey, $secondKey, $localKey, $secondLocalKey, $relationName = null)
Create a new has many relationship instance.
at line 39
bool
parentSoftDeletes()
Determine whether close parent of the relation uses Soft Deletes.