diff --git a/src/SWP/Bundle/CoreBundle/Migrations/2021/01/Version20210112135542.php b/src/SWP/Bundle/CoreBundle/Migrations/2021/01/Version20210112135542.php index 68cfec49d..a5c387bc7 100644 --- a/src/SWP/Bundle/CoreBundle/Migrations/2021/01/Version20210112135542.php +++ b/src/SWP/Bundle/CoreBundle/Migrations/2021/01/Version20210112135542.php @@ -119,7 +119,7 @@ public function postUp(Schema $schema): void echo ">> Articles processed: " . $totalArticlesProcessed . " Total Articles: " . $totalArticles . "\n"; // flush remaining entities in queue and break loop - if ($totalArticlesProcessed === $totalArticles) { + if ($totalArticlesProcessed >= $totalArticles) { $entityManager->flush(); $entityManager->clear(); $isProcessing = false;