original_string: private function update($model)
      {
          $attrs = $this->getMutableAttributes($model);
          $values = array_values($attrs);
          $values[] = $model->{$this->key};
          $this->db
              ->connect()
              ->update($this->table, array_keys($attrs))
              ->where($this->key . ' = ?')
              ->execute($values);
      }
code: private function update($model)
      {
          $attrs = $this->getMutableAttributes($model);
          $values = array_values($attrs);
          $values[] = $model->{$this->key};
          $this->db
              ->connect()
              ->update($this->table, array_keys($attrs))
              ->where($this->key . ' = ?')
              ->execute($values);
      }
code_tokens: private function update ( $ model ) { $ attrs = $ this -> getMutableAttributes ( $ model ) ; $ values = array_values ( $ attrs ) ; $ values [ ] = $ model -> { $ this -> key } ; $ this -> db -> connect ( ) -> update ( $ this -> table , array_keys ( $ attrs ) ) -> where ( $ this -> key . ' = ?' ) -> execute ( $ values ) ; }
docstring: Update entry.
  
  @param mixed $model  Model instance.
docstring_tokens: Update entry .