]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Entity/Tag.php
assign tags to an entry
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Entity / Tag.php
index 6f005314f69fd8e33a2e253a0d135bf74913171c..97c4579f70e8c1a607817a28ca5985912a2c8b3d 100644 (file)
@@ -96,6 +96,11 @@ class Tag
         $this->entries[] = $entry;
     }
 
+    public function hasEntry($entry)
+    {
+        return $this->entries->contains($entry);
+    }
+
     /**
      * @return User
      */