DefinedConstraints
trait Winter\Storm\Database\Relations\Concerns\DefinedConstraints
Methods
public addDefinedConstraints () : void
Set the defined constraints on the relation query.
Returns
void
public
addDefinedConstraintsToQuery (Illuminate\Database\Eloquent\Relations\Relation | Winter\Storm\Database\QueryBuilder $query, array | null $args = null
)
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
public
addDefinedConstraintsToRelation (Illuminate\Database\Eloquent\Relations\Relation $relation, array | null $args = null
)
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
Used by
Class | Description |
---|---|
AttachMany
|
|
AttachOne
|
|
BelongsTo
|
|
BelongsToMany
|
|
HasMany
|
|
HasManyThrough
|
|
HasOne
|
|
HasOneThrough
|
|
MorphMany
|
|
MorphOne
|
|
MorphTo
|
|
MorphToMany
|
Morph To Many relation. |
← Previous page
Winter\Storm\Database\Relations\Concerns\DeferOneOrMany
Next page →
Winter\Storm\Database\Relations\Concerns\HasOneOrMany
Copyright © 2024 Winter CMS