Fix error on EntityManager clear

Introduced in the recent 2.5.5 release.
Also updated deps.
This commit is contained in:
Jeremy Benoist
2016-09-11 15:53:16 +02:00
parent 04d5c60216
commit 58fadbc9df
5 changed files with 76 additions and 26 deletions

View File

@ -169,7 +169,10 @@ class ReadabilityImport extends AbstractImport
// flush every 20 entries
if (($i % 20) === 0) {
$this->em->flush();
$this->em->clear($entry);
// clear only affected entities
$this->em->clear(Entry::class);
$this->em->clear(Tag::class);
}
++$i;
}