RE: [symfony-users] Doctrine ORM: Non-existent service "registry"

2011-05-05 Thread Leo Jokinen
> -Original Message- > From: symfony-users@googlegroups.com [mailto:symfony- > us...@googlegroups.com] On Behalf Of Fabien Potencier > Sent: 5. toukokuuta 2011 16:34 > To: symfony-users@googlegroups.com > Subject: Re: [symfony-users] Doctrine ORM: Non-existent service &g

Re: [symfony-users] Doctrine ORM: Non-existent service "registry"

2011-05-05 Thread Fabien Potencier
On 5/5/11 2:34 PM, Leo Jokinen wrote: Le 05/05/2011 14:06, Leo Jokinen a écrit : Hi, I followed Symfony book and got the error: You have requested a non- existent service "registry" The registry is only available as of beta2, which is to be released. Fabien My code: public function indexA

Re: [symfony-users] Doctrine ORM: Non-existent service "registry"

2011-05-05 Thread Christophe COEVOET
Le 05/05/2011 14:34, Leo Jokinen a écrit : That didn't work either. This works in my controller: $em = $this->get('doctrine.orm.entity_manager'); These not: $em = $this->get('registry')->getEntityManager(); $em = $this->get('doctrine')->getEntityManager(); $em = $this->get('doctrine.orm')->getE

RE: [symfony-users] Doctrine ORM: Non-existent service "registry"

2011-05-05 Thread Leo Jokinen
> Le 05/05/2011 14:06, Leo Jokinen a écrit : > > Hi, > > > > I followed Symfony book and got the error: You have requested a non- > existent service "registry" > > > > My code: > > public function indexAction() > > { > >$em = $this->get('registry')->getEntityManager(); > >// ... > > } > > >

Re: [symfony-users] Doctrine ORM: Non-existent service "registry"

2011-05-05 Thread Christophe COEVOET
Le 05/05/2011 14:06, Leo Jokinen a écrit : Hi, I followed Symfony book and got the error: You have requested a non-existent service "registry" My code: public function indexAction() { $em = $this->get('registry')->getEntityManager(); // ... } http://symfony.com/doc/2.0/book/doctrine/orm

[symfony-users] Doctrine ORM: Non-existent service "registry"

2011-05-05 Thread Leo Jokinen
Hi, I followed Symfony book and got the error: You have requested a non-existent service "registry" My code: public function indexAction() { $em = $this->get('registry')->getEntityManager(); // ... } http://symfony.com/doc/2.0/book/doctrine/orm.html # Doctrine Configuration doctrine: