Skip to content

Commit 46ed478

Browse files
committed
Merge pull request symfony#1987 from richardmiller/updating_acl_em
Updating way of getting entity manager to use base controller helper method
2 parents 22eafca + 80d4176 commit 46ed478

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/security/acl.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Creating an ACL, and adding an ACE
105105
// ... setup $form, and bind data
106106
107107
if ($form->isValid()) {
108-
$entityManager = $this->get('doctrine.orm.default_entity_manager');
108+
$entityManager = $this->getDoctrine()->getEntityManager();
109109
$entityManager->persist($comment);
110110
$entityManager->flush();
111111

0 commit comments

Comments
 (0)