1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

Fix relations export for Entry

Tags & Annotations weren’t really well exported.
This is now fixed (+ tests)
This commit is contained in:
Jeremy Benoist 2016-10-02 16:06:42 +02:00
parent 9d127b3b93
commit b0458874c8
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
5 changed files with 58 additions and 19 deletions

View file

@ -23,6 +23,9 @@ class LoadEntryData extends AbstractFixture implements OrderedFixtureInterface
$entry1->setContent('This is my content /o/');
$entry1->setLanguage('en');
$entry1->addTag($this->getReference('foo-tag'));
$entry1->addTag($this->getReference('baz-tag'));
$manager->persist($entry1);
$this->addReference('entry1', $entry1);
@ -96,6 +99,7 @@ class LoadEntryData extends AbstractFixture implements OrderedFixtureInterface
$entry6->setContent('This is my content /o/');
$entry6->setArchived(true);
$entry6->setLanguage('de');
$entry6->addTag($this->getReference('bar-tag'));
$manager->persist($entry6);