public function update($entity, array $attributes)
	{
		if ($this->validator) {
			$this->validator->replace('key', $this->getEntityKey($entity));
		}

		return $this->perform('update', $entity, $attributes, true) ? true : false;
	}
public function update($entity, array $attributes)
	{
		if ($this->validator) {
			$this->validator->replace('key', $this->getEntityKey($entity));
		}

		return $this->perform('update', $entity, $attributes, true) ? true : false;
	}
public function update ( $ entity , array $ attributes ) { if ( $ this -> validator ) { $ this -> validator -> replace ( 'key' , $ this -> getEntityKey ( $ entity ) ) ; } return $ this -> perform ( 'update' , $ entity , $ attributes , true ) ? true : false ; }
Update an entity with the given attributes and persist it.

@param  object  $entity
@param  array   $attributes

@return boolean
Update an entity with the given attributes and persist it .