HasManyThrough

 class Winter\Storm\Database\Relations\HasManyThrough
extends Illuminate\Database\Eloquent\Relations\HasManyThrough

Extends

Traits

Trait Description
DefinedConstraints

Properties

protected $relationName : string

The "name" of the relationship.

Methods

public __construct (Illuminate\Database\Eloquent\Builder $query, Illuminate\Database\Eloquent\Model $farParent, Illuminate\Database\Eloquent\Model $parent, $firstKey, $secondKey, $localKey, $secondLocalKey, $relationName = null) : void

Create a new has many relationship instance.

Parameters
Property Description
$query
Illuminate\Database\Eloquent\Builder
$farParent
Illuminate\Database\Eloquent\Model
$parent
Illuminate\Database\Eloquent\Model
$firstKey
mixed
$secondKey
mixed
$localKey
mixed
$secondLocalKey
mixed
$relationName
mixed
Returns
void

public parentSoftDeletes () : bool

Determine whether close parent of the relation uses Soft Deletes.

Returns
bool

inherited public addDefinedConstraints () : void

Inherited from DefinedConstraints

Set the defined constraints on the relation query.

Returns
void

inherited public addDefinedConstraintsToQuery (Illuminate\Database\Eloquent\Relations\Relation | Winter\Storm\Database\QueryBuilder $query, array | null $args = null)

Inherited from DefinedConstraints

Add query based constraints.

Parameters
Property Description
$query
Illuminate\Database\Eloquent\Relations\Relation | Winter\Storm\Database\QueryBuilder
$args
array | null
Returns
mixed

inherited public addDefinedConstraintsToRelation (Illuminate\Database\Eloquent\Relations\Relation $relation, array | null $args = null)

Inherited from DefinedConstraints

Add relation based constraints.

Parameters
Property Description
$relation
Illuminate\Database\Eloquent\Relations\Relation
$args
array | null
Returns
mixed
Copyright © 2024 Winter CMS