]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Entity/TagsEntries.php
fixtures for tag
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Entity / TagsEntries.php
index 22826387570c0439593d90209b63ea6544016042..589f26f8250ea5b70023967073524d509c9c6ebb 100644 (file)
@@ -8,7 +8,6 @@ use Doctrine\ORM\Mapping as ORM;
  * TagsEntries
  *
  * @ORM\Table(name="tags_entries")
- * @ORM\Entity
  */
 class TagsEntries
 {
@@ -22,16 +21,18 @@ class TagsEntries
     private $id;
 
     /**
-     * @var integer
      *
-     * @ORM\Column(name="entry_id", type="integer")
+     * @ORM\ManyToOne(targetEntity="Entry", inversedBy="tags_entries")
+     * @ORM\JoinColumn(name="entry_id", referencedColumnName="id")
+     *
      */
     private $entryId;
 
     /**
-     * @var integer
      *
-     * @ORM\Column(name="tag_id", type="integer")
+     * @ORM\ManyToOne(targetEntity="Tag", inversedBy="tags_entries")
+     * @ORM\JoinColumn(name="tag_id", referencedColumnName="id")
+     *
      */
     private $tagId;
 
@@ -46,48 +47,35 @@ class TagsEntries
     }
 
     /**
-     * Set entryId
-     *
-     * @param  integer     $entryId
-     * @return TagsEntries
+     * @return mixed
      */
-    public function setEntryId($entryId)
+    public function getEntryId()
     {
-        $this->entryId = $entryId;
-
-        return $this;
+        return $this->entryId;
     }
 
     /**
-     * Get entryId
-     *
-     * @return integer
+     * @param mixed $entryId
      */
-    public function getEntryId()
+    public function setEntryId($entryId)
     {
-        return $this->entryId;
+        $this->entryId = $entryId;
     }
 
     /**
-     * Set tagId
-     *
-     * @param  integer     $tagId
-     * @return TagsEntries
+     * @return mixed
      */
-    public function setTagId($tagId)
+    public function getTagId()
     {
-        $this->tagId = $tagId;
-
-        return $this;
+        return $this->tagId;
     }
 
     /**
-     * Get tagId
-     *
-     * @return integer
+     * @param mixed $tagId
      */
-    public function getTagId()
+    public function setTagId($tagId)
     {
-        return $this->tagId;
+        $this->tagId = $tagId;
     }
+
 }