set update data on customer model.

@param $updateAttributes

@throws \Exception

@return $this
421682
public function setUpdateData($updateAttributes)
    {
        if (empty($updateAttributes)) {
            throw new \InvalidArgumentException('Update Attributes Empty');
        }

        $this->_setAttributes($updateAttributes);
        $this->setUpdateable(true);

        return $this;
    }
387155
def update(self, attributes):
        
        for attribute in attributes:
            setattr(self, attribute, attributes[attribute])
        return self
200315
public function setAttributes(array $attributesValues): self
    {
        foreach ($attributesValues as $attribute => $value) {
            $this->setAttribute($attribute, $value);
        }

        return $this;
    }
419645
public function setAttributeValue(\Sulu\Bundle\ProductBundle\Entity\AttributeValue $attributeValue)
    {
        $this->attributeValue = $attributeValue;

        return $this;
    }
135315
public function setRowAttributes($values, HtmlAttributes $attr)
    {
        $this->spec_row_values = $values;
        $this->spec_row_attr = $attr;

        return $this;
    }
846743
public function setAttribute($attribute, $value = null)
    {
        if ($attribute === 'class') {
            $this->addClass($value);

            return $this;
        }

        $this->attributes[$attribute] = $value;

        return $this;
    }
604731
public function update($model, array $newAttributes)
    {

        $this->validate($newAttributes, 'update');

        $this->fillModel($model, $newAttributes);

        $this->callBeforeListeners('update', [$model]);

        $this->model()->savePayload($model);

        $this->callAfterListeners('update', [$model]);

        return $model;
    }
454198
public function setFieldsByArray( array $updateFieldsArray )
	{
		foreach ( $updateFieldsArray as $fieldName => $fieldValue )
			$this->setField( $fieldName, $fieldValue );

		return $this;
	}
182204
protected function __update()
	{
		/** Rebase array indices */
		parent::__update();

		if ( $this->count() && $this->attribute instanceof DOMAttr ) {
			$this->attribute->value = (string) $this;
		}
	}
1023347
public function updateAttribute($name, $value)
	{
		$this->__set($name, $value);
		return $this->update(false);
	}
1352513
public function setAttributes(array $attributes)
    {
        $this->attributes = [];
        foreach ($attributes as $attribute => $value) {
            $this->addAttribute($attribute, $value);
        }

        return $this;
    }
721577
public function setAttributes(\FreeFW\JsonApi\V1\Model\AttributesObject $p_attributes)
    {
        $this->attributes = $p_attributes;
        return $this;
    }
628666
public function setAttribute(\Sulu\Bundle\ProductBundle\Entity\Attribute $attribute)
    {
        $this->attribute = $attribute;

        return $this;
    }
725980
public function updateAttributes(&$attributes)
    {
        if ($validator = $this->getValidator()) {
            
            if ($extra = $validator->getAttributesForField($this->owner)) {
                $attributes = array_merge($attributes, $extra);
            }
            
        }
    }
495515
public function update(array $attributes = [])
    {
        if (isset($attributes['password'])) {
            $attributes['password'] = bcrypt($attributes['password']);
        }

        if (!parent::update($attributes)) {
            throw new Exception('Cannot update user.'); // @codeCoverageIgnore
        }
        if (!parent::update($attributes)) {
            throw new Exception('Cannot update user.'); // @codeCoverageIgnore
        }

        return $this->fresh();
    }
1188589
public function update($model, array $newAttributes)
    {

        $this->validate($newAttributes, 'update');

        $this->fillModel($model, $newAttributes);

        $this->fire($this->event('updating'), [$model, $newAttributes]);

        $model->save();

        $this->fire($this->event('updated'), [$model, $newAttributes]);

        return $model;
    }
1013608
public function update($attributes)
    {
        $this->attributes = array_merge($this->attributes, array_filter($attributes, function ($attribute) {
            return ! is_null($attribute);
        }));

        return $this;
    }