HasOne::save()

Model save(Model $model) Attach a model instance to the parent model. Parameters Model $model Return Value Model

HasOne::relatedUpdatedAt()

string relatedUpdatedAt() Get the name of the related model's "updated at" column. Return Value string

HasOne::rawUpdate()

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

HasOne::noConstraints()

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

HasOne::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

HasOne::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

HasOne::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

HasOne::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

HasOne::initRelation()

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

HasOne::getResults()

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