Transaction across multiple DB_DataObjects

From: Date: Tue, 25 Sep 2007 21:06:12 +0000
Subject: Transaction across multiple DB_DataObjects
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-27988@lists.php.net to get a copy of this message
Hi folks, I know how to handle transactions with DB_DataObject, but is there a way to wrap actions on multiple objects of different type? Say, instantiate a dataobject of "users" and one of "settings", and then make updates on both objects in the same transaction. 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? Best, Claus

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