Or you can bind a model to a connection in Doctrine. I am not sure how it is
in propel. In doctrine you simply add connection: name_of_conn in your yaml
schema and it will bind the model to that connection name.

- Jon

On Fri, Oct 24, 2008 at 5:35 AM, Thomas Rabaix <[EMAIL PROTECTED]>wrote:

>
> With propel / doctrine, when you 'save' an object you can provide a
> 'connection' parameter.
>
> So you can easily create two connections in databases.yml. and just
> overwrite the save method of your object or provide the connection
> inside the controller.
>
> Thomas
>
> On Wed, Oct 22, 2008 at 9:17 PM, Julian Montreal <[EMAIL PROTECTED]> wrote:
> >
> > I'm not pretty sure if this is a propel / symfony or propel-symfony
> > question:
> >
> > I wonder if it's possible to have more than one regular user for the
> > db queries. Where i work, we want to use a username/password for
> > reading and another one for writing to the db (mainly due to security
> > issues). I would like to know if somebody knows if that's possible. I
> > couldn't find information about that on the net.
> >
> > Thanks a lot for your comments.
> >
> >
> > >
> >
>
>
>
> --
> Thomas Rabaix
> Internet Consultant
>
> >
>


-- 
Jonathan H. Wage
Open Source Software Developer & Evangelist
http://www.jwage.com
http://www.doctrine-project.org
http://www.symfony-project.org

--~--~---------~--~----~------------~-------~--~----~
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