abstract classe Relation (Voir la source)

Propriétés

protected Model $parent

The parent model instance

$related

The related model instance

protected QueryBuilder $query

The Bow Query builder

static protected bool $has_constraints

Indicates whether the relation is adding constraints.

static protected bool $has_pivot

Indicate whether the relationships use a pivot table.*.

Méthodes

__construct(Model $related, Model $parent)

Relation Contructor

void
addConstraints()

Set the base constraints on the relation query.

mixed
getResults()

Get the results of the relationship.

getParent()

Get the parent model.

getRelated()

Get associated model class.

mixed
__call(string $method, array $args)

_Call

Détails

__construct(Model $related, Model $parent)

Relation Contructor

Paramètres

Model $related
Model $parent

abstract void addConstraints()

Set the base constraints on the relation query.

Valeur de retour

void

abstract mixed getResults()

Get the results of the relationship.

Valeur de retour

mixed

Model getParent()

Get the parent model.

Valeur de retour

Model

Model getRelated()

Get associated model class.

Valeur de retour

Model

mixed __call(string $method, array $args)

_Call

Paramètres

string $method
array $args

Valeur de retour

mixed