Hans Lellelid | 8 Sep 2008 12:41

Re: Querying over multiple databases

Hi Fabian,

You're correct -- the connection is just determined from 
Propel::getConnection() call.  you can pass your connection method to 
the peer methods -- e.g. MyPeer::doSelect($crit, $con)  -- so that 
Propel will use that connection.  No need for further initialization.  
(Of course, this assumes that the connection you reference is defined in 
your runtime conf XML.)

Hans

Fabian von Derschatta (united-domains AG) wrote:
> Hi,
>
> ok I see. Would be great if this feature finds its way into Propel some
> day. Meanwhile we will try querying directly and hydrating the objects
> as you proposed.
>
> If I set up more than one datasource how can I access a specific
> datasource? Is it just getting the connection with $conn =
> Propel::getConnection('datasourcename')" and then continue with this
> connection object or do I have to initiate Propel with the specific
> datasource to use it?
>
> Regards,
> Fabian
>
> Am Sonntag, den 07.09.2008, 18:53 -0400 schrieb Hans Lellelid:
>   
>> Hi Fabian,
(Continue reading)


Gmane