Re: Re: Using DB and DB_DataObjects together
| From: | Justin Patrin | Date: | Thu, 04 Nov 2004 20:53:37 +0000 |
| Subject: | Re: Re: Using DB and DB_DataObjects together | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-15344@lists.php.net to get a copy of this message | ||
On Thu, 04 Nov 2004 20:13:32 +0000, Peter Bowyer
<peter@mapledesign.co.uk> wrote:
> Thanks!
>
> Do you know if this affects the data container itself? Like if I do a
> query using PEAR:DB using a join, then go back to the data object (which is
> for one particular table), is there any difference in the way it behaves?
>
Unless you start mucking about in the statement handles in DOs
internals and globals, nothing should change. AFAIK, DB never knows if
you're doing a join, it just runs queries and pulls results.
> Also, any reason a setDatabaseConnection() method hasn't been implemented?
Because this is all set in the DO config. If a DO's connection could
be switched half-way through a run (i.e. while doing a fetch or just
before you update) you'd have some real consistency issues.
>
> Regards,
> Peter
>
> At 18:07 04/11/2004, you wrote:
> >$do->getDatabaseConnection();
>
--
paperCrane --Justin Patrin--