-
- if (is_null($existingTag)) {
- $this->get('wallabag_core.content_proxy')->assignTagsToEntry(
- $entry,
- $tag
- );
- $em->persist($tag);
- } elseif (!$existingTag->hasEntry($entry)) {
- $this->get('wallabag_core.content_proxy')->assignTagsToEntry(
- $entry,
- $existingTag
- );
- $em->persist($existingTag);
- }
-