LMongo\Eloquent\Relations\HasOneOrMany::update PHP Method

update() public method

Perform an update on all the related models.
public update ( array $attributes ) : integer
$attributes array
return integer
    public function update(array $attributes)
    {
        if ($this->related->usesTimestamps()) {
            $attributes[$this->relatedUpdatedAt()] = $this->related->freshTimestamp();
        }
        return $this->query->update($attributes);
    }