]> 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 ad01cf575e686d2057101b701aff4dea507510b7..589f26f8250ea5b70023967073524d509c9c6ebb 100644 (file)
@@ -8,39 +8,38 @@ use Doctrine\ORM\Mapping as ORM;
  * TagsEntries
  *
  * @ORM\Table(name="tags_entries")
- * @ORM\Entity
  */
 class TagsEntries
 {
     /**
      * @var integer
      *
-     * @ORM\Column(name="id", type="integer", nullable=false)
+     * @ORM\Column(name="id", type="integer")
      * @ORM\Id
-     * @ORM\GeneratedValue(strategy="IDENTITY")
+     * @ORM\GeneratedValue(strategy="AUTO")
      */
     private $id;
 
     /**
-     * @var integer
      *
-     * @ORM\Column(name="entry_id", type="integer", nullable=true)
+     * @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", nullable=true)
+     * @ORM\ManyToOne(targetEntity="Tag", inversedBy="tags_entries")
+     * @ORM\JoinColumn(name="tag_id", referencedColumnName="id")
+     *
      */
     private $tagId;
 
-
-
     /**
      * Get id
      *
-     * @return integer 
+     * @return integer
      */
     public function getId()
     {
@@ -48,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;
     }
+
 }