From 7a271bf37c62e68b398bc58666cc2e1cd902bbbb Mon Sep 17 00:00:00 2001 From: Richard Miller Date: Wed, 28 Nov 2012 22:46:00 +0000 Subject: [PATCH] Updating way of getting entity manager to use base controller helper method --- cookbook/security/acl.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/security/acl.rst b/cookbook/security/acl.rst index 39d167b8a87..88d21bfb0f4 100644 --- a/cookbook/security/acl.rst +++ b/cookbook/security/acl.rst @@ -105,7 +105,7 @@ Creating an ACL, and adding an ACE // ... setup $form, and bind data if ($form->isValid()) { - $entityManager = $this->get('doctrine.orm.default_entity_manager'); + $entityManager = $this->getDoctrine()->getManager(); $entityManager->persist($comment); $entityManager->flush();