Explorar o código

Patch the way the ObjectAclManipulator get the entity manager

Pascal Burkhard %!s(int64=13) %!d(string=hai) anos
pai
achega
987338ee25
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Util/ObjectAclManipulator.php

+ 1 - 1
Util/ObjectAclManipulator.php

@@ -36,7 +36,7 @@ class ObjectAclManipulator extends BaseObjectAclManipulator
         $output->writeln(sprintf(' > generate ACLs for %s', $admin->getCode()));
         $objectOwnersMsg = is_null($securityIdentity) ? '' : ' and set the object owner';
 
-        $em = $admin->getModelManager()->getEntityManager();
+        $em = $admin->getModelManager()->getEntityManager($admin->getClass());
         $qb = $em->createQueryBuilder();
         $qb->select('o')->from($admin->getClass(), 'o');