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

Commit 5337ce5

Browse files
authored
Fix (bug #1862): Do not clear entity manager for doctrine orm populator (#1995)
Bug: #1862 Clear specific entities is deprecated and will not be supported in Doctrine 3.0. (doctrine/orm@9ccb883) Bug introduced: c49cd54 Related issue: https://stackoverflow.com/questions/18215975/doctrine-a-new-entity-was-found-through-the-relationship
1 parent 1fcc343 commit 5337ce5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Diff for: src/Faker/ORM/Doctrine/Populator.php

-2
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,9 @@ public function execute($entityManager = null)
9898
);
9999
if (count($insertedEntities) % $this->batchSize === 0) {
100100
$entityManager->flush();
101-
$entityManager->clear($class);
102101
}
103102
}
104103
$entityManager->flush();
105-
$entityManager->clear($class);
106104
}
107105

108106
return $insertedEntities;

0 commit comments

Comments
 (0)