public function update($id, $model)
    {
        // arguments for private method
        $args = func_get_args();

        // proxy call
        $result = $this->proxy('_update', $args);

        // if($this->shouldUseCache())
        // {
        // 	// Cache::put($this->type . ':' . $result->id, $result, $this->cacheDuration);
        // 	Cache::forget($this->type);
        // }

        return $result;
    }
public function update($id, $model)
    {
        // arguments for private method
        $args = func_get_args();

        // proxy call
        $result = $this->proxy('_update', $args);

        // if($this->shouldUseCache())
        // {
        // 	// Cache::put($this->type . ':' . $result->id, $result, $this->cacheDuration);
        // 	Cache::forget($this->type);
        // }

        return $result;
    }
public function update ( $ id , $ model ) { // arguments for private method $ args = func_get_args ( ) ; // proxy call $ result = $ this -> proxy ( '_update' , $ args ) ; // if($this->shouldUseCache()) // { // 	// Cache::put($this->type . ':' . $result->id, $result, $this->cacheDuration); // 	Cache::forget($this->type); // } return $ result ; }
DB UPDATE of object

@param $model 	string 		- data for object update

@return mixed
DB UPDATE of object