public function update(array $values) {
		$sql = $this->buildUpdateSQL($values);
		$params = $this->getParameters();
		return $this->db->query($sql, $params)->affected();
	}
public function update(array $values) {
		$sql = $this->buildUpdateSQL($values);
		$params = $this->getParameters();
		return $this->db->query($sql, $params)->affected();
	}
public function update ( array $ values ) { $ sql = $ this -> buildUpdateSQL ( $ values ) ; $ params = $ this -> getParameters ( ) ; return $ this -> db -> query ( $ sql , $ params ) -> affected ( ) ; }
Update rows.
@param  array  $values
@return integer
@api
Update rows .