Protected
instancesWhen the relation is loaded, the immediate children of the node.
Protected
Readonly
leftProtected
Readonly
loggingProtected
Readonly
modelProtected
parentThe model related from.
Readonly
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.
Resolve the result of this relation.
Get the value of the 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.
Set the value of the relation.
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
A relation that recursively loads the subtree of a model using modified preorder traversal.