diff options
Diffstat (limited to 'src/Wallabag/ImportBundle/Import/ReadabilityImport.php')
-rw-r--r-- | src/Wallabag/ImportBundle/Import/ReadabilityImport.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Wallabag/ImportBundle/Import/ReadabilityImport.php b/src/Wallabag/ImportBundle/Import/ReadabilityImport.php index 915d4cd3..8f080d38 100644 --- a/src/Wallabag/ImportBundle/Import/ReadabilityImport.php +++ b/src/Wallabag/ImportBundle/Import/ReadabilityImport.php | |||
@@ -89,6 +89,9 @@ class ReadabilityImport extends AbstractImport | |||
89 | return true; | 89 | return true; |
90 | } | 90 | } |
91 | 91 | ||
92 | /** | ||
93 | * {@inheritdoc} | ||
94 | */ | ||
92 | public function parseEntry(array $importedEntry) | 95 | public function parseEntry(array $importedEntry) |
93 | { | 96 | { |
94 | $existingEntry = $this->em | 97 | $existingEntry = $this->em |
@@ -108,6 +111,7 @@ class ReadabilityImport extends AbstractImport | |||
108 | 'language' => '', | 111 | 'language' => '', |
109 | 'is_archived' => $importedEntry['archive'] || $this->markAsRead, | 112 | 'is_archived' => $importedEntry['archive'] || $this->markAsRead, |
110 | 'is_starred' => $importedEntry['favorite'], | 113 | 'is_starred' => $importedEntry['favorite'], |
114 | 'created_at' => $importedEntry['date_added'], | ||
111 | ]; | 115 | ]; |
112 | 116 | ||
113 | $entry = $this->fetchContent( | 117 | $entry = $this->fetchContent( |
@@ -125,6 +129,7 @@ class ReadabilityImport extends AbstractImport | |||
125 | 129 | ||
126 | $entry->setArchived($data['is_archived']); | 130 | $entry->setArchived($data['is_archived']); |
127 | $entry->setStarred($data['is_starred']); | 131 | $entry->setStarred($data['is_starred']); |
132 | $entry->setCreatedAt(new \DateTime($data['created_at'])); | ||
128 | 133 | ||
129 | $this->em->persist($entry); | 134 | $this->em->persist($entry); |
130 | ++$this->importedEntries; | 135 | ++$this->importedEntries; |