Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Fix (bug #1862): Do not clear entity manager for doctrine orm populator #1995

Merged
merged 1 commit into from
May 11, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/Faker/ORM/Doctrine/Populator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down