X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FDataFixtures%2FEntryFixtures.php;h=a48444428106fd6528d65e1ae86e47d4c55f0078;hb=82cee42b602d66b788b4203b740ebad16d329e2a;hp=759845ac3280c0960cebd0847a41c7c386b89a18;hpb=f5c1ae2dd8ec0b1aabdefb78815163c1223aacba;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/DataFixtures/EntryFixtures.php b/src/Wallabag/CoreBundle/DataFixtures/EntryFixtures.php index 759845ac..a4844442 100644 --- a/src/Wallabag/CoreBundle/DataFixtures/EntryFixtures.php +++ b/src/Wallabag/CoreBundle/DataFixtures/EntryFixtures.php @@ -75,6 +75,7 @@ class EntryFixtures extends Fixture implements DependentFixtureInterface 'created_at' => '2020-04-26 10:04:00', 'language' => 'fr', 'starred' => true, + 'starred_at' => '2042-04-26 10:04:00', 'preview' => 'http://0.0.0.0/image.jpg', ], 'entry6' => [ @@ -88,6 +89,7 @@ class EntryFixtures extends Fixture implements DependentFixtureInterface 'created_at' => '2020-04-26 10:05:00', 'language' => 'de', 'archived' => true, + 'archived_at' => '2020-04-26 10:05:00', 'tags' => ['bar-tag'], ], ]; @@ -115,10 +117,12 @@ class EntryFixtures extends Fixture implements DependentFixtureInterface if (isset($item['starred'])) { $entry->setStarred($item['starred']); + $entry->setStarredAt(new \DateTime($item['starred_at'])); } if (isset($item['archived'])) { $entry->setArchived($item['archived']); + $entry->setArchivedAt(new \DateTime($item['archived_at'])); } if (isset($item['preview'])) {