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);
    }
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);
    }
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 ) ; }
Update entry.

@param mixed $model  Model instance.
Update entry .