seasonRepository->findAll() as $season) { if (null !== $season->settings) { continue; } $io->text('Adding settings to season : '.$season->seasonCode); $season->settings = new SeasonSettings(); } $this->entityManager->flush(); return Command::SUCCESS; } }