src/OfficeBrain/Bundle/ProductBundle/Entity/ProductCategoryMapping.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\OfficeBrain\Bundle\ProductBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * ProductCategoryMapping
  6.  *
  7.  * @ORM\Table(name="product_category_mapping")
  8.  * @ORM\Entity(repositoryClass="App\OfficeBrain\Bundle\ProductBundle\Entity\ProductCategoryMappingRepository")
  9.  */
  10. class ProductCategoryMapping
  11. {
  12.     /**
  13.      * @var integer
  14.      *
  15.      * @ORM\Column(name="id", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="AUTO")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var \CategoryMaster
  22.      * @ORM\Column(name="category_id", type="integer", nullable=true)
  23.      */
  24.     private $categoryId;
  25.     /**
  26.      * @var \ProductMaster
  27.      * 
  28.      * @ORM\Column(name="product_id", type="integer", nullable=true)
  29.      * })
  30.      */
  31.     private $productId;
  32.     /**
  33.      * @var integer
  34.      *
  35.      * @ORM\Column(name="country_id", type="integer", nullable=true)
  36.      */
  37.     private $countryId;
  38.     /**
  39.      * @var int
  40.      *
  41.      * @ORM\Column(name="sort_position",type="bigint", length=11, options={"unsigned"=true})
  42.      */
  43.     private $sortPosition;
  44.     
  45.     /**
  46.      * Get id
  47.      *
  48.      * @return integer
  49.      */
  50.     public function getId()
  51.     {
  52.         return $this->id;
  53.     }
  54.     /**
  55.      * Set categoryId
  56.      *
  57.      * @param integer $categoryId
  58.      *
  59.      * @return ProductCategoryMapping
  60.      */
  61.     public function setCategoryId($categoryId)
  62.     {
  63.         $this->categoryId $categoryId;
  64.         return $this;
  65.     }
  66.     /**
  67.      * Get categoryId
  68.      *
  69.      * @return integer
  70.      */
  71.     public function getCategoryId()
  72.     {
  73.         return $this->categoryId;
  74.     }
  75.     /**
  76.      * Set productId
  77.      *
  78.      * @param integer $productId
  79.      *
  80.      * @return ProductCategoryMapping
  81.      */
  82.     public function setProductId($productId)
  83.     {
  84.         $this->productId $productId;
  85.         return $this;
  86.     }
  87.     /**
  88.      * Get productId
  89.      *
  90.      * @return integer
  91.      */
  92.     public function getProductId()
  93.     {
  94.         return $this->productId;
  95.     }
  96.     /**
  97.      * Set countryId
  98.      *
  99.      * @param integer $countryId
  100.      *
  101.      * @return ProductCategoryMapping
  102.      */
  103.     public function setCountryId($countryId)
  104.     {
  105.         $this->countryId $countryId;
  106.         return $this;
  107.     }
  108.     /**
  109.      * Get countryId
  110.      *
  111.      * @return integer
  112.      */
  113.     public function getCountryId()
  114.     {
  115.         return $this->countryId;
  116.     }
  117.     /**
  118.      * Set sortPosition.
  119.      *
  120.      * @param int $sortPosition
  121.      *
  122.      * @return 
  123.      */
  124.     public function setSortPosition($sortPosition)
  125.     {
  126.         $this->sortPosition $sortPosition;
  127.         
  128.         return $this;
  129.     }
  130.     
  131.     /**
  132.      * Get sortPosition.
  133.      *
  134.      * @return int
  135.      */
  136.     public function getSortPosition()
  137.     {
  138.         return $this->sortPosition;
  139.     }
  140. }