Skip to content

Commit

Permalink
Update Version20210112135542.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zkabic committed Apr 23, 2024
1 parent d1ea44f commit ad81499
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ad81499

Please sign in to comment.