Merge pull request #5156 from wallabag/fix-assign-tags

Fixed timeout when assigning tags to entry
This commit is contained in:
Kevin Decherf 2021-10-23 13:24:22 +02:00 committed by GitHub
commit 05a7904cfa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

@ -712,7 +712,6 @@ class Entry
} }
$this->tags->add($tag); $this->tags->add($tag);
$tag->addEntry($this);
} }
/** /**

View file

@ -195,7 +195,7 @@ class TagControllerTest extends WallabagCoreTestCase
$entry2 = new Entry($this->getLoggedInUser()); $entry2 = new Entry($this->getLoggedInUser());
$entry2->setUrl('http://0.0.0.0/bar'); $entry2->setUrl('http://0.0.0.0/bar');
$entry2->addTag($tag); $entry2->addTag($tag);
$this->getEntityManager()->persist($entry); $this->getEntityManager()->persist($entry2);
$this->getEntityManager()->flush(); $this->getEntityManager()->flush();
$this->getEntityManager()->clear(); $this->getEntityManager()->clear();