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:
parent
04d5c60216
commit
58fadbc9df
5 changed files with 76 additions and 26 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue