diff --git a/Command/InitCommand.php b/Command/InitCommand.php index 317ec80a..e54f4b12 100644 --- a/Command/InitCommand.php +++ b/Command/InitCommand.php @@ -82,9 +82,8 @@ protected function execute(InputInterface $input, OutputInterface $output) /** @var Webspace $webspace */ foreach ($this->webspaceManager->getWebspaceCollection() as $webspace) { $this->initWebspace($webspace, $output); + $this->entityManager->flush(); } - - $this->entityManager->flush(); } /**