> -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
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
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
> 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();
> >// ...
> > }
> >
>
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
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: