Re: Transaction across multiple DB_DataObjects

From: Date: Tue, 25 Sep 2007 21:44:40 +0000
Subject: Re: Transaction across multiple DB_DataObjects
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-27989@lists.php.net to get a copy of this message
Hi WebClaus schrieb:
If 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.
Greetings, Sascha

« previous php.pear.general (#27989) next »