Re: Transaction across multiple DB_DataObjects
| From: | WebClaus | Date: | Tue, 25 Sep 2007 22:01:40 +0000 |
| Subject: | Re: Transaction across multiple DB_DataObjects | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-27990@lists.php.net to get a copy of this message | ||
Sascha Grossenbacher wrote:
Hmm, I tested this and it didn't seem to work, but if DBO really works this way the I guess I should go back and re-investigate... Thanks, ClausIf I could pass an existing database handle to the DB_DataObject configuration, I could lock that handle, which would be used to instantiate the various objects, but I can only pass a dsn, which will then be used to create a new connection for each object?DB_DataObject uses only one connection which is shared between all objects. Starting your transaction in one object and finish it in another should work just fine.