Yes, I tried that you say, but symfony 2.0.0PR10 says me that the service 
doctrine does not exist
Enviado desde mi dispositivo BlackBerry®

-----Original Message-----
From: badllama77 <badllam...@gmail.com>
Sender: symfony-users@googlegroups.com
Date: Wed, 11 May 2011 11:10:21 
To: <symfony-users@googlegroups.com>
Reply-To: symfony-users@googlegroups.com
Subject: [symfony-users] Re: Use two different database into the same controller

you can get an entity manager for a different defined entity by name

$em =  $this->get('doctrine')->getEntityManager('ppuerp'); 

see.
http://symfony.com/doc/current/book/doctrine/orm.html#multiple-entity-managers

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

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