Relation
abstract classe Relation (Voir la source)
Propriétés
protected Model | $parent | The parent model instance |
|
protected Model | $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
void
addConstraints()
Set the base constraints on the relation query.
mixed
getResults()
Get the results of the relationship.
getRelated()
Get associated model class.
mixed
__call(string $method, array $args)
_Call
Détails
abstract void
addConstraints()
Set the base constraints on the relation query.
abstract mixed
getResults()
Get the results of the relationship.
Model
getParent()
Get the parent model.
Model
getRelated()
Get associated model class.
mixed
__call(string $method, array $args)
_Call