$data = json_decode(file_get_contents($this->filepath), true);
if (empty($data)) {
+ $this->logger->error('WallabagImport: no entries in imported file');
+
return false;
}
if (array_key_exists('tags', $data)) {
$this->contentProxy->assignTagsToEntry(
$entry,
- $data['tags']
+ $data['tags'],
+ $this->em->getUnitOfWork()->getScheduledEntityInsertions()
);
}