<?php

namespace OfficeBrain\Bundle\BlogBundle\Entity;

use Doctrine\ORM\Mapping as ORM;


/**
 * PostCategoryInfo
 *
 * @ORM\Table("tbl_post_category_info")
 * @ORM\Entity(repositoryClass="OfficeBrain\Bundle\BlogBundle\Entity\PostCategoryInfoRepository")
 */
class PostCategoryInfo
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

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

    /**
     * @var integer
     * @ORM\ManyToOne(targetEntity="Category",inversedBy="postCategoryInfo")
     * @ORM\JoinColumn(name="category_id", referencedColumnName="id")
     */
    private $categoryId;

   
    

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

    /**
     * Set postId
     *
     * @param \OfficeBrain\Bundle\BlogBundle\Entity\Post $postId
     * @return PostCategoryInfo
     */
    public function setPostId($postId)
    {
        $this->postId = $postId;

        return $this;
    }

    /**
     * Get postId
     *
     * @return \OfficeBrain\Bundle\BlogBundle\Entity\Post 
     */
    public function getPostId()
    {
        return $this->postId;
    }

    /**
     * Set categoryId
     *
     * @param \OfficeBrain\Bundle\BlogBundle\Entity\Category $categoryId
     * @return PostCategoryInfo
     */
    public function setCategoryId($categoryId)
    {
        $this->categoryId = $categoryId;

        return $this;
    }

    /**
     * Get categoryId
     *
     * @return \OfficeBrain\Bundle\BlogBundle\Entity\Category 
     */
    public function getCategoryId()
    {
        return $this->categoryId;
    }
    
    protected $postCategoryId; 
    
    
    public function getPostCategoryId()
    {
        return $this->postCategoryId;
    }
    
    public function setPostCategoryId($postCategoryId)
    {
        $this->postCategoryId = $postCategoryId;

        return $this;
    }
    
}
