HasManyThrough
class Winter\Storm\Database\Relations\HasManyThrough
extends Illuminate\Database\Eloquent\Relations\HasManyThrough
Extends
Class | Description |
---|---|
Illuminate\Database\Eloquent\Relations\HasManyThrough
|
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 | Type | Description |
---|---|---|
$query | Illuminate\Database\Eloquent\Builder |
Illuminate\Database\Eloquent\Builder
|
$farParent | Illuminate\Database\Eloquent\Model |
Illuminate\Database\Eloquent\Model
|
$parent | Illuminate\Database\Eloquent\Model |
Illuminate\Database\Eloquent\Model
|
$firstKey | mixed |
mixed
|
$secondKey | mixed |
mixed
|
$localKey | mixed |
mixed
|
$secondLocalKey | mixed |
mixed
|
$relationName | mixed |
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 | Type | Description |
---|---|---|
$query | Illuminate\Database\Eloquent\Relations\Relation | Winter\Storm\Database\QueryBuilder |
Illuminate\Database\Eloquent\Relations\Relation | Winter\Storm\Database\QueryBuilder
|
$args | array | null |
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 | Type | Description |
---|---|---|
$relation | Illuminate\Database\Eloquent\Relations\Relation |
Illuminate\Database\Eloquent\Relations\Relation
|
$args | array | null |
array | null
|
Returns
mixed
← Previous page
Winter\Storm\Database\Relations\HasMany
Next page →
Winter\Storm\Database\Relations\HasOne
Copyright © 2024 Winter CMS