I have two different object (table).
RequestInProcess AND Request. the object request as only a few fields more than RequestInProcess.
Is there an automatic way to copy RequestInProcess into Request ?
I tried this but it doesn't work
- Code: Select all
$c = new Criteria();
$c->add(RequestInProcess Peer::ID,$requestInProcess _id);
$rs = RequestInProcess Peer::doSelectRS($c);
$request = RequestPeer::populateObjects($rs);
$request[0]->setDelivery(2);
$request[0]->setNew(1);
$request[0]->save();
if i do that, this is the query wich is executed
- Code: Select all
INSERT INTO itemvol (DELIVERY,UPDATED_ON,CREATED_ON) VALUES (2,'2008-07-30 23:48:51','2008-07-30 23:48:51')
What can i do ?
Thanks
Yoni
