parseQuery("UPDATE User u SET u.name = 'someone'"); $this->assertEqual($q->getQuery(), "UPDATE entity SET entity.name = 'someone' WHERE (entity.type = 0)"); $q = new Doctrine_Query(); $q->update('User u')->set('u.name', 'someone'); $this->assertEqual($q->getQuery(), "UPDATE entity SET entity.name = 'someone' WHERE (entity.type = 0)"); } } ?>