This commit is contained in:
Jeremy Benoist
2017-10-09 16:47:15 +02:00
parent f40c88eb1f
commit 3ef055ced3
27 changed files with 37 additions and 37 deletions

View File

@ -165,7 +165,7 @@ abstract class AbstractImport implements ImportInterface
$entryToBeFlushed[] = $entry;
// flush every 20 entries
if (($i % 20) === 0) {
if (0 === ($i % 20)) {
$this->em->flush();
foreach ($entryToBeFlushed as $entry) {