src/OfficeBrain/Bundle/OrderBundle/Entity/OrderVariationMaster.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\OfficeBrain\Bundle\OrderBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * OrderVariationMaster
  6.  *
  7.  * @ORM\Table(name="tbl_order_variation_master", options={"type"="InnoDB","charset"="utf8","collate"="utf8_unicode_ci"})
  8.  * @ORM\Entity(repositoryClass="App\OfficeBrain\Bundle\OrderBundle\Entity\OrderVariationMasterRepository")
  9.  */
  10. class OrderVariationMaster
  11. {
  12.     /**
  13.      * @var integer
  14.      *
  15.      * @ORM\Column(name="id",type="bigint", length=20 , options={"unsigned"=true})
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="AUTO")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity="OrderProduct", inversedBy="orderVariationMaster")
  22.      * @ORM\JoinColumn(name="order_product_id", referencedColumnName="id")
  23.      */
  24.     private $orderProductId;
  25.     /**
  26.      * @var integer
  27.      *
  28.      * @ORM\Column(name="attribute_id", type="bigint", length=20, nullable=true, options={"unsigned"=true})
  29.      */
  30.     private $attributeId;
  31.     /**
  32.      * @var integer
  33.      *
  34.      * @ORM\Column(name="attribute_value_id", type="bigint", length=20, nullable=true, options={"unsigned"=true})
  35.      */
  36.     private $attributrValueId;
  37.     
  38.     /**
  39.      * @ORM\OneToOne(targetEntity="OrderVariationMapping", mappedBy="variationMasterId")
  40.      */
  41.     private $orderVariationMapping;
  42.     /**
  43.      * @var integer
  44.      *
  45.      * @ORM\Column(name="erp_id", type="bigint", length=20, nullable=true, options={"unsigned"=true})
  46.      */
  47.     private $erpId;
  48.     
  49.     /**
  50.      * Get id
  51.      *
  52.      * @return integer 
  53.      */
  54.     public function getId()
  55.     {
  56.         return $this->id;
  57.     }
  58.     /**
  59.      * Set attributeId
  60.      *
  61.      * @param integer $attributeId
  62.      * @return OrderVariationMaster
  63.      */
  64.     public function setAttributeId($attributeId)
  65.     {
  66.         $this->attributeId $attributeId;
  67.         return $this;
  68.     }
  69.     /**
  70.      * Get attributeId
  71.      *
  72.      * @return integer 
  73.      */
  74.     public function getAttributeId()
  75.     {
  76.         return $this->attributeId;
  77.     }
  78.     /**
  79.      * Set attributrValueId
  80.      *
  81.      * @param integer $attributrValueId
  82.      * @return OrderVariationMaster
  83.      */
  84.     public function setAttributrValueId($attributrValueId)
  85.     {
  86.         $this->attributrValueId $attributrValueId;
  87.         return $this;
  88.     }
  89.     /**
  90.      * Get attributrValueId
  91.      *
  92.      * @return integer 
  93.      */
  94.     public function getAttributrValueId()
  95.     {
  96.         return $this->attributrValueId;
  97.     }
  98.     /**
  99.      * Set orderProductId
  100.      *
  101.      * @param \App\OfficeBrain\Bundle\OrderBundle\Entity\OrderProduct $orderProductId
  102.      * @return OrderVariationMaster
  103.      */
  104.     public function setOrderProductId(\App\OfficeBrain\Bundle\OrderBundle\Entity\OrderProduct $orderProductId null)
  105.     {
  106.         $this->orderProductId $orderProductId;
  107.         return $this;
  108.     }
  109.     /**
  110.      * Get orderProductId
  111.      *
  112.      * @return \App\OfficeBrain\Bundle\OrderBundle\Entity\OrderProduct 
  113.      */
  114.     public function getOrderProductId()
  115.     {
  116.         return $this->orderProductId;
  117.     }
  118.     /**
  119.      * Set orderVariationMapping
  120.      *
  121.      * @param \App\OfficeBrain\Bundle\OrderBundle\Entity\OrderVariationMapping $orderVariationMapping
  122.      * @return OrderVariationMaster
  123.      */
  124.     public function setOrderVariationMapping(\App\OfficeBrain\Bundle\OrderBundle\Entity\OrderVariationMapping $orderVariationMapping null)
  125.     {
  126.         $this->orderVariationMapping $orderVariationMapping;
  127.         return $this;
  128.     }
  129.     /**
  130.      * Get orderVariationMapping
  131.      *
  132.      * @return \App\OfficeBrain\Bundle\OrderBundle\Entity\OrderVariationMapping 
  133.      */
  134.     public function getOrderVariationMapping()
  135.     {
  136.         return $this->orderVariationMapping;
  137.     }
  138.     /**
  139.      * Set erpId
  140.      *
  141.      * @param integer $erpId
  142.      *
  143.      * @return OrderVariationMaster
  144.      */
  145.     public function setErpId($erpId)
  146.     {
  147.         $this->erpId $erpId;
  148.         return $this;
  149.     }
  150.     /**
  151.      * Get erpId
  152.      *
  153.      * @return integer
  154.      */
  155.     public function getErpId()
  156.     {
  157.         return $this->erpId;
  158.     }
  159. }