function test_update_entity_record_with_composite_pkey() { $connection = $this->createTable(); $connection->exec("INSERT INTO users VALUES ('foo', 'bar', 'John')"); $gateway = new pdoext_TableGateway('users', $connection); $gateway->update(array('a' => 'foo', 'b' => 'bar', 'name' => 'Jim')); $result = $connection->pexecute("SELECT COUNT(*) FROM users WHERE name = 'John'"); $row = $result->fetch(); $this->assertEqual($row[0], 0); $result = $connection->pexecute("SELECT COUNT(*) FROM users WHERE name = 'Jim'"); $row = $result->fetch(); $this->assertEqual($row[0], 1); }