Skip to content

Commit

Permalink
Fixed doctrine.odm.mongodb.document_manager reference
Browse files Browse the repository at this point in the history
  • Loading branch information
pgodel authored and fabpot committed Jul 4, 2010
1 parent 9318147 commit b2a9fcb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions guides/en/Doctrine/MongoDB.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ managing its persistent state with Doctrine:
$user = new User();
$user->setName('Jonathan H. Wage');

$dm = $this->container->getService('doctrine_odm.mongodb.document_manager');
$dm = $this->container->getService('doctrine.odm.mongodb.document_manager');
$dm->persist($user);
$dm->flush();

Expand All @@ -96,7 +96,7 @@ managing its persistent state with Doctrine:

public function editAction($id)
{
$dm = $this->container->getService('doctrine_odm.mongodb.document_manager');
$dm = $this->container->getService('doctrine.odm.mongodb.document_manager');
$user = $dm->createQuery('HelloBundle:User')
->where('id', $id)
->getSingleResult();
Expand All @@ -106,7 +106,7 @@ managing its persistent state with Doctrine:

public function deleteAction($id)
{
$dm = $this->container->getService('doctrine_odm.mongodb.document_manager');
$dm = $this->container->getService('doctrine.odm.mongodb.document_manager');
$user = $dm->createQuery('HelloBundle:User')
->where('id', $id)
->getSingleResult();
Expand Down

0 comments on commit b2a9fcb

Please sign in to comment.