src/Model.php
protected function update( $key, $value ) {

		$columns = static::table()->get_columns();

		$data = array(
			$key => $columns[ $key ]->prepare_for_storage( $value )
		);

		$res = static::make_query_object()->update( $this->get_pk(), $data );

		if ( $res && static::$_cache ) {
			Cache::update( $this );
		}

		return $res;
	}
protected function update( $key, $value ) {

		$columns = static::table()->get_columns();

		$data = array(
			$key => $columns[ $key ]->prepare_for_storage( $value )
		);

		$res = static::make_query_object()->update( $this->get_pk(), $data );

		if ( $res && static::$_cache ) {
			Cache::update( $this );
		}

		return $res;
	}
Update a certain value.

@deprecated 2.0 This bypasses the attributes layer and as such is deprecated in 2.0.

@since      1.0

@param string $key   DB column to update.
@param mixed  $value New value.

@return bool