HasOneOrMany::__clone()

void __clone() Force a clone of the underlying query builder when cloning. Return Value void

HasOneOrMany::__call()

mixed __call(string $method, array $parameters) Handle dynamic method calls to the relationship. Parameters string $method array $parameters Return Value mixed

HasOneOrMany::wrap()

string wrap(string $value) Wrap the given value with the parent query's grammar. Parameters string $value Return Value string

HasOneOrMany::updateOrCreate()

Model updateOrCreate(array $attributes, array $values = array()) Create or update a related record matching the attributes, and fill it with values. Parameters array $attributes array $values Return Value Model

HasOneOrMany::updatedAt()

string updatedAt() Get the name of the "updated at" column. Return Value string

HasOneOrMany::update()

int update(array $attributes) Perform an update on all the related models. Parameters array $attributes Return Value int

HasOneOrMany::touch()

void touch() Touch all of the related models for the relationship. Return Value void

HasOneOrMany::saveMany()

Traversable|array saveMany(Traversable|array $models) Attach a collection of models to the parent instance. Parameters Traversable|array $models Return Value Traversable|array

HasOneOrMany::save()

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

HasOneOrMany::relatedUpdatedAt()

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