code: function update(array $data){
          if($this->notORM->freeze){
              return false;
          }
          if(!$data){
              return 0;
          }
          $values     = array();
          $parameters = array();
          $quoteChar  = $this->getQuoteChar();
          foreach($data as $key => $val){
              // doesn't use binding because $this->parameters can be filled by ? or :name
              $values[] = "{$quoteChar}{$key}{$quoteChar} = " . $this->quote($val);
              if($val instanceof NotORM_Literal && $val->parameters){
                  $parameters = array_merge($parameters, $val->parameters);
              }
          }
          if($this->parameters){
              $parameters = array_merge($parameters, $this->parameters);
          }
          // joins in UPDATE are supported only in MySQL
          $return = $this->query("UPDATE" . $this->topString($this->limit) . " $this->table SET " . implode(", ", $values) . $this->whereString(), $parameters);
          if(!$return){
              return false;
          }
          return $return->rowCount();
      }
docs: Update all rows in result set
  
  @param array ($column => $value)
  
  @return int number of affected rows or false in case of an error