public function update($query, array $data) {
        $stmt = $this->executeQuery($query, $data);

        return $stmt->rowCount();       
    }
public function update($query, array $data) {
        $stmt = $this->executeQuery($query, $data);

        return $stmt->rowCount();       
    }
public function update ( $ query , array $ data ) { $ stmt = $ this -> executeQuery ( $ query , $ data ) ; return $ stmt -> rowCount ( ) ; }
Update an existing record in the storage

@param string $query
@param array $data
@return int the number of rows
Update an existing record in the storage