<?php

namespace OfficeBrain\Bundle\BlogBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
/**
 * PostTagInfo
 *
 * @ORM\Table("tbl_post_tag_info")
 * @ORM\Entity(repositoryClass="OfficeBrain\Bundle\BlogBundle\Entity\PostTagInfoRepository")
 */
class PostTagInfo
{
    
   
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var integer
     * @ORM\ManyToOne(targetEntity="Post", inversedBy="postTagInfo")
     * @ORM\JoinColumn(name="post_id", referencedColumnName="id")
     */
    private $postId;

    /**
     * @var integer
     * @ORM\ManyToOne(targetEntity="Tag", inversedBy="postTagInfo")
     * @ORM\JoinColumn(name="tag_id", referencedColumnName="id")
     */
    private $tagId;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set postId
     *
     * @param integer $postId
     * @return PostTagInfo
     */
    public function setPostId($postId)
    {
        $this->postId = $postId;

        return $this;
    }

    /**
     * Get postId
     *
     * @return integer 
     */
    public function getPostId()
    {
        return $this->postId;
    }

    /**
     * Set tagId
     *
     * @param integer $tagId
     * @return PostTagInfo
     */
    public function setTagId($tagId)
    {
        $this->tagId = $tagId;

        return $this;
    }

    /**
     * Get tagId
     *
     * @return integer 
     */
    public function getTagId()
    {
        return $this->tagId;
    }
    
   
    
    protected $postTagId; 
    
    public function getPostTagId()
    {
        return $this->postTagId;
    }
    
   public function setPostTagId($postTagId)
    {
        $this->postTagId = $postTagId;

        return $this;
    }
}
