[PEPr] Comment on Database::DB_DataObject_Transaction

From: Date: Tue, 25 Oct 2005 04:22:06 +0000
Subject: [PEPr] Comment on Database::DB_DataObject_Transaction
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-40282@lists.php.net to get a copy of this message
Alan Knowles (http://pear.php.net/user/alan_k) has commented on the proposal for Database::DB_DataObject_Transaction. Comment: I think it may be best to patch DataObjects to support some of this: function find($n == false,$opts=array()) .... if ($opts['lock_row']) { $query .- ' FOR UPDATE'; } .... The rest of the package seems a little unrelated to transactions (more to do with sessionizing objects, and creating a mega insert/update/delete method.) Which to be reusable should not really extend dataobjects... (eg. something like $do = DB_DataObject_SessionCache::get('tablename',$somevalue); eg..) although you have to be really carefull when working this way, as the session may contain out of date data, after a few requests... Proposal information: http://pear.php.net/pepr/pepr-proposal-show.php?id=313 -- Sent by PEPr, the automatic proposal system at http://pear.php.net

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