Re: DB_DataObject and multiple databases
| From: | Dan Rossi | Date: | Thu, 28 Apr 2005 08:34:33 +0000 |
| Subject: | Re: DB_DataObject and multiple databases | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-18987@lists.php.net to get a copy of this message | ||
I feel doing a require to load each DO is a pain. I use PHP5 therefore I may use the loadclass callback to load the file :)
How do i tell where to find each ini file though ?
On 28/04/2005, at 6:30 PM, Alan Knowles wrote:
you need to generate the classes using different ini files (and target different folders) with createTables.php, the use require, rather than factory to load the secondary DB. DBDO handles this alot better ;) Regards Alan On Thu, 2005-04-28 at 12:40 +1000, pear@electroteque.org wrote:I am having some issues linking to multiple databases in particular, tables that have the same names, when the DO's are generated it will generate only one of them of course. I just experienced a problem when I loaded a DO from the second DB then made a factory called to another DO of the first DB however it was trying to find that table in the second database any ideas there ?