HasMany::rawUpdate()

int rawUpdate(array $attributes = array()) Run a raw update against the base query. Parameters array $attributes Return Value int

HasMany::noConstraints()

static mixed noConstraints(Closure $callback) Run a callback with constraints disabled on the relation. Parameters Closure $callback Return Value mixed

HasMany::morphMap()

static array morphMap(array $map = null, bool $merge = true) Set or get the morph map for polymorphic relations. Parameters array $map bool $merge Return Value array

HasMany::matchOne()

array matchOne(array $models, Collection $results, string $relation) Match the eagerly loaded results to their single parents. Parameters array $models Collection $results string $relation Return Value array

HasMany::matchMany()

array matchMany(array $models, Collection $results, string $relation) Match the eagerly loaded results to their many parents. Parameters array $models Collection $results string $relation Return Value array

HasMany::match()

array match(array $models, Collection $results, string $relation) Match the eagerly loaded results to their parents. Parameters array $models Collection $results string $relation Return Value array

HasMany::initRelation()

array initRelation(array $models, string $relation) Initialize the relation on a set of models. Parameters array $models string $relation Return Value array

HasMany::getResults()

mixed getResults() Get the results of the relationship. Return Value mixed

HasMany::getRelationCountQueryForSelfRelation()

Builder getRelationCountQueryForSelfRelation(Builder $query, Builder $parent) Add the constraints for a relationship count query on the same table. Parameters Builder $query Builder $parent Return Value Builder

HasMany::getRelationCountQuery()

Builder getRelationCountQuery(Builder $query, Builder $parent) Add the constraints for a relationship count query. Parameters Builder $query Builder $parent Return Value Builder