1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-01 17:38:38 +00:00

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
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
5 changed files with 76 additions and 26 deletions

View file

@ -255,7 +255,10 @@ class PocketImport 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;
}

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;
}

View file

@ -172,7 +172,10 @@ abstract class WallabagImport 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;
}