Protected
constructorProtected
Readonly
leftProtected
loadedProtected
modelProtected
parentThe model related from.
Protected
Readonly
parentProtected
Optional
parentReadonly
relatedThe model related to.
Protected
parentGet the value of the key field from the parent model.
Get the query source for the related model in this relation.
Get the value of this relation.
Limit the results of the builder to only this relation's rows.
Create a relation query that will eager-load the result of this relation for a set of models.
Get a new builder instance for this relation.
Get a collection of the results of this relation.
Given a set of possibly-related instances, filter out the ones that are relevant to the parent.
Create a new relation builder query for this relation instance.
Set the container for this instance.
Makes the relation "thenable" so relation methods on models can be awaited to yield the result of the relation.
const rows = await myModelInstance.myHasManyRelation() -- rows is a Collection
Base class for inter-model relation implementations.