src/Titon/Db/Repository.php
public function update($id, $data, array $options = []) {
        return $this->query(Query::UPDATE)
            ->where($this->getPrimaryKey(), $id)
            ->save($data, $options);
    }
public function update($id, $data, array $options = []) {
        return $this->query(Query::UPDATE)
            ->where($this->getPrimaryKey(), $id)
            ->save($data, $options);
    }
public function update ( $ id , $ data , array $ options = [ ] ) { return $ this -> query ( Query :: UPDATE ) -> where ( $ this -> getPrimaryKey ( ) , $ id ) -> save ( $ data , $ options ) ; }
Update a database record based on ID.

@param int $id
@param array|\Titon\Type\Contract\Arrayable $data
@param array $options
@return int The count of records updated
Update a database record based on ID .