From d115ae0d4d91b6ea75e68ea0b14400df4ff2e1f1 Mon Sep 17 00:00:00 2001 From: afornerot Date: Fri, 5 Apr 2019 14:37:38 +0200 Subject: [PATCH] correction init group tout le monde --- .../Cadoles/CoreBundle/Command/InitDataCommand.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/cadolesuser-1.0/src/Cadoles/CoreBundle/Command/InitDataCommand.php b/src/cadolesuser-1.0/src/Cadoles/CoreBundle/Command/InitDataCommand.php index fc032a8d..a43bcb7e 100644 --- a/src/cadolesuser-1.0/src/Cadoles/CoreBundle/Command/InitDataCommand.php +++ b/src/cadolesuser-1.0/src/Cadoles/CoreBundle/Command/InitDataCommand.php @@ -35,7 +35,7 @@ class InitDataCommand extends ContainerAwareCommand $output->writeln('CORE = Default Data'); $em = $this->getContainer()->get('doctrine')->getEntityManager(); - + $finder = new Finder(); $finder->in('src/Cadoles/CoreBundle/Command/data'); @@ -67,7 +67,7 @@ class InitDataCommand extends ContainerAwareCommand $stmt = $em->getConnection()->prepare($content); $stmt->execute(); - + } // Init city @@ -78,7 +78,7 @@ class InitDataCommand extends ContainerAwareCommand $stmt = $em->getConnection()->prepare($content); $stmt->execute(); - + } $stmt->closeCursor(); @@ -91,8 +91,9 @@ class InitDataCommand extends ContainerAwareCommand $group->setFgopen(false); $group->setFgall(true); $group->setFgtemplate(false); + $group->setFgcanshare(false); $em->persist($group); - $em->flush(); + $em->flush(); } $sub = $em->createQueryBuilder(); @@ -113,7 +114,7 @@ class InitDataCommand extends ContainerAwareCommand $usergroup->setUser($data); $usergroup->setGroup($group); $em->persist($usergroup); - $em->flush(); + $em->flush(); } $output->writeln('');