/** * {@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']); }