We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 22eafca + 80d4176 commit 46ed478Copy full SHA for 46ed478
cookbook/security/acl.rst
@@ -105,7 +105,7 @@ Creating an ACL, and adding an ACE
105
// ... setup $form, and bind data
106
107
if ($form->isValid()) {
108
- $entityManager = $this->get('doctrine.orm.default_entity_manager');
+ $entityManager = $this->getDoctrine()->getEntityManager();
109
$entityManager->persist($comment);
110
$entityManager->flush();
111
0 commit comments