Home > Archive > PHP Pear > September 2007 > Re: [PEAR] Transaction across multiple DB_DataObjects
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: [PEAR] Transaction across multiple DB_DataObjects
|
|
| Sascha Grossenbacher 2007-09-25, 7:05 pm |
| 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
| |
| WebClaus 2007-09-25, 7:05 pm |
| Sascha Grossenbacher wrote:
>
> 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.
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,
Claus
|
|
|
|
|