I was looking through the Symfony source code.

$dbConn = Doctrine_Manager::getInstance()->getCurrentConnection();

This seems to give me the current connection and
Doctrine_Manager::getInstance() allows me to fetch all configured
connections as well as the ability to create my own connections.

On Sun, Jul 25, 2010 at 12:20 PM, Alessandro Ferrucci <
alessandroferru...@gmail.com> wrote:

> Hi,
> I'm using symfony with Doctrine.  I have a central control database.  Then
> I have many databases that are created when new "projects" start.  I dont
> want to manually modify my databases.yml whenever a new project starts up to
> add a new database connection.
> How can I fetch the DoctrineManager to manually make a connection to a
> MySQL database ?
> thank you
>
> --
> Signed,
> Alessandro Ferrucci
>



-- 
Signed,
Alessandro Ferrucci

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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

Reply via email to