Hi


May be, this helps
i just googled it......

In propel,
you can do this by creating a connection using
Propel::setConnection(......);

then pass this connection object to the model layer functions in the
connection parameter

On Wed, Sep 30, 2009 at 2:53 AM, Simone Fumagalli <
[email protected]> wrote:

>
> Hello.
>
> Scenario
> ---------------------
>
> I have an application with a main database which contain information
> about my customers and other system related information.
>
> Once the user login, depending on his grant, he can decide on which
> customer/DB he want to work.
> The logged user can switch customer/DB whenever he want during his
> session.
>
> The connection to the main DB is always needed and on the same page I
> query both DB, the main and the customer one.
>
> I've googled the list and and web and I've found examples for multiple
> connection in Symfony but all were about connection defined in the
> config.
>
> Question
> ---------------------
> Is it possible to open DB connection at runtime and use the opened DB
> connection in my action/model ? If yes, how ?
>
> Ciao
>
> --
> Simone
>
>
>
> >
>


-- 
Regards,
Dheeraj

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to