Re: DataObject update

From: Date: Thu, 17 Mar 2005 17:29:04 +0000
Subject: Re: DataObject update
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-36722@lists.php.net to get a copy of this message
On Thu, 17 Mar 2005 13:07:50 +0800, Alan Knowles <alan@akbkhome.com> wrote: > should really ask on pear-general, > nope, there's no method to do this at present, it's a pretty edge case, Just expaning on the "edge case" idea. This *is* an edge case. If you have two DataObjects which represent the same record you're probably not using DB_DataObject correctly. It makes much more sense to use two copied of the same DO. $do =& DB_DataObject::factory('table'); $do->get(5); ... $do2 =& $do; $do2->col = 'val'; > On Thu, 2005-03-17 at 01:10 +0100, Esad Hajdarevic wrote: > > Hi folks, > > > > Am I missing something or there isn't a function in the > > DataObject which can be used to update the DataObject ( > > in the other direction compared to current update(), > > re-reading the data from the DB). > > > > Esad > > -- Justin Patrin

« previous php.pear.dev (#36722) next »