diff --git a/src/Command/BooksExtractCoverCommand.php b/src/Command/BooksExtractCoverCommand.php index 97e501d5..092da843 100644 --- a/src/Command/BooksExtractCoverCommand.php +++ b/src/Command/BooksExtractCoverCommand.php @@ -64,6 +64,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int try { $book = $this->fileSystemManager->extractCover($book); $this->entityManager->persist($book); + $this->entityManager->flush(); } catch (\Exception $e) { $io->error($e->getMessage()); continue;