Abstract
Protected
constructorProtected
parentThe model related from.
Readonly
relatedThe model related to.
Protected
Abstract
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.
Abstract
applyLimit the results of the builder to only this relation's rows.
Abstract
buildCreate 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.
Abstract
getAbstract
getAbstract
isAbstract
matchGiven a set of possibly-related instances, filter out the ones that are relevant to the parent.
Abstract
queryCreate a new relation builder query for this relation instance.
Abstract
setMakes 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.