* TagsEntries
*
* @ORM\Table(name="tags_entries")
- * @ORM\Entity
*/
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;
}
/**
- * 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;
}
+
}