<TRelatedModel is Model, TIntermediateModel is Model, TDeclaringModel is Model>
extends |
HasOneOrManyThrough<TRelatedModel, TIntermediateModel, TDeclaringModel, ?TRelatedModel> |
---|---|
implements |
SupportsPartialRelations |
uses |
ComparesRelatedModels, CanBeOneOfMany, InteractsWithDictionary, SupportsDefaultModels |
Methods | ||
---|---|---|
public
|
getResults()
|
# |
public
|
initRelation(array $models, $relation)
|
# |
public
|
match(array $models, Collection $results, $relation)
|
# |
public
|
getRelationExistenceQuery(Builder $query, Builder $parentQuery, $columns = ['*'])
|
# |
public
|
addOneOfManySubQueryConstraints(Builder $query, $column = null, $aggregate = null)
|
# |
public
|
getOneOfManySubQuerySelectColumns()
|
# |
public
|
addOneOfManyJoinSubQueryConstraints(JoinClause $join)
|
# |
public
|
newRelatedInstanceFor(TDeclaringModel $parent): TRelatedModel
|
# |
protected
|
getRelatedKeyFrom(Model $model)
|
# |
public
|
getParentKey()
|
# |
Methods used from Illuminate\Support\Traits\ForwardsCalls |
---|
forwardCallTo(), forwardDecoratedCallTo(), throwBadMethodCallException() |
Methods used from Illuminate\Support\Traits\Macroable |
---|
macro(), mixin(), hasMacro(), flushMacros(), __callStatic(), |
Methods used from Illuminate\Database\Eloquent\Relations\Concerns\InteractsWithDictionary |
---|
getDictionaryKey() |
Methods used from Illuminate\Database\Eloquent\Relations\Concerns\ComparesRelatedModels |
---|
is(), isNot(), compareKeys() |
Methods used from Illuminate\Database\Eloquent\Relations\Concerns\InteractsWithDictionary |
---|
getDictionaryKey() |
Methods used from Illuminate\Database\Eloquent\Relations\Concerns\SupportsDefaultModels |
---|
withDefault(), getDefaultFor() |
Properties inherited from Illuminate\Database\Eloquent\Relations\HasOneOrManyThrough |
---|
$throughParent, $farParent, $firstKey, $secondKey, $localKey, $secondLocalKey |
Properties inherited from Illuminate\Database\Eloquent\Relations\Relation |
---|
$query, $parent, $related, $eagerKeysWereEmpty, $constraints, $morphMap, $requireMorphMap, $selfJoinCount |
Properties used from Illuminate\Support\Traits\Macroable |
---|
$macros |
Properties used from Illuminate\Database\Eloquent\Relations\Concerns\CanBeOneOfMany |
---|
$isOneOfMany, $relationName, $oneOfManySubQuery |
Properties used from Illuminate\Database\Eloquent\Relations\Concerns\SupportsDefaultModels |
---|
$withDefault |