protected function updateModel(){
        $body = $this->Response->getBody();
        switch ($this->action){
            case self::MODEL_ACTION_CREATE:
            case self::MODEL_ACTION_UPDATE:
            case self::MODEL_ACTION_RETRIEVE:
                if (is_array($body)){
                    $this->update($body);
                }
                break;
            case self::MODEL_ACTION_DELETE:
                $this->clear();
        }
    }
protected function updateModel(){
        $body = $this->Response->getBody();
        switch ($this->action){
            case self::MODEL_ACTION_CREATE:
            case self::MODEL_ACTION_UPDATE:
            case self::MODEL_ACTION_RETRIEVE:
                if (is_array($body)){
                    $this->update($body);
                }
                break;
            case self::MODEL_ACTION_DELETE:
                $this->clear();
        }
    }
protected function updateModel ( ) { $ body = $ this -> Response -> getBody ( ) ; switch ( $ this -> action ) { case self :: MODEL_ACTION_CREATE : case self :: MODEL_ACTION_UPDATE : case self :: MODEL_ACTION_RETRIEVE : if ( is_array ( $ body ) ) { $ this -> update ( $ body ) ; } break ; case self :: MODEL_ACTION_DELETE : $ this -> clear ( ) ; } }
Called after Execute if a Request Object exists, and Request returned 200 response
Called after Execute if a Request Object exists and Request returned 200 response