diff --git a/src/Faker/ORM/Doctrine/Populator.php b/src/Faker/ORM/Doctrine/Populator.php index d4c5dfb879..bd55f0b81b 100644 --- a/src/Faker/ORM/Doctrine/Populator.php +++ b/src/Faker/ORM/Doctrine/Populator.php @@ -98,11 +98,9 @@ public function execute($entityManager = null) ); if (count($insertedEntities) % $this->batchSize === 0) { $entityManager->flush(); - $entityManager->clear($class); } } $entityManager->flush(); - $entityManager->clear($class); } return $insertedEntities;