Exemplo n.º 1
0
Arquivo: Fuel.php Projeto: atabak/orm
 /**
  * {@inheritdoc}
  */
 public function update($table, $values)
 {
     $this->currentQuery = $this->connection->update($table);
     foreach ($values as $name => $value) {
         // TODO: Add proper PK checks in here
         if ($name !== 'id') {
             $this->currentQuery->set($name, $value);
         }
     }
     // TODO: Update to use the actual PK
     $this->where('id', '=', $values['id']);
 }