From 29418ac7fc652676255ac60d5f46b57457439756 Mon Sep 17 00:00:00 2001 From: Sergio Mendolia Date: Wed, 20 Sep 2023 10:45:42 +0200 Subject: [PATCH] Flush more often --- src/Command/BooksExtractCoverCommand.php | 1 + 1 file changed, 1 insertion(+) 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;