<?php
namespace App\OfficeBrain\Bundle\OrderBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* OrderVariationMaster
*
* @ORM\Table(name="tbl_order_variation_master", options={"type"="InnoDB","charset"="utf8","collate"="utf8_unicode_ci"})
* @ORM\Entity(repositoryClass="App\OfficeBrain\Bundle\OrderBundle\Entity\OrderVariationMasterRepository")
*/
class OrderVariationMaster
{
/**
* @var integer
*
* @ORM\Column(name="id",type="bigint", length=20 , options={"unsigned"=true})
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="OrderProduct", inversedBy="orderVariationMaster")
* @ORM\JoinColumn(name="order_product_id", referencedColumnName="id")
*/
private $orderProductId;
/**
* @var integer
*
* @ORM\Column(name="attribute_id", type="bigint", length=20, nullable=true, options={"unsigned"=true})
*/
private $attributeId;
/**
* @var integer
*
* @ORM\Column(name="attribute_value_id", type="bigint", length=20, nullable=true, options={"unsigned"=true})
*/
private $attributrValueId;
/**
* @ORM\OneToOne(targetEntity="OrderVariationMapping", mappedBy="variationMasterId")
*/
private $orderVariationMapping;
/**
* @var integer
*
* @ORM\Column(name="erp_id", type="bigint", length=20, nullable=true, options={"unsigned"=true})
*/
private $erpId;
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set attributeId
*
* @param integer $attributeId
* @return OrderVariationMaster
*/
public function setAttributeId($attributeId)
{
$this->attributeId = $attributeId;
return $this;
}
/**
* Get attributeId
*
* @return integer
*/
public function getAttributeId()
{
return $this->attributeId;
}
/**
* Set attributrValueId
*
* @param integer $attributrValueId
* @return OrderVariationMaster
*/
public function setAttributrValueId($attributrValueId)
{
$this->attributrValueId = $attributrValueId;
return $this;
}
/**
* Get attributrValueId
*
* @return integer
*/
public function getAttributrValueId()
{
return $this->attributrValueId;
}
/**
* Set orderProductId
*
* @param \App\OfficeBrain\Bundle\OrderBundle\Entity\OrderProduct $orderProductId
* @return OrderVariationMaster
*/
public function setOrderProductId(\App\OfficeBrain\Bundle\OrderBundle\Entity\OrderProduct $orderProductId = null)
{
$this->orderProductId = $orderProductId;
return $this;
}
/**
* Get orderProductId
*
* @return \App\OfficeBrain\Bundle\OrderBundle\Entity\OrderProduct
*/
public function getOrderProductId()
{
return $this->orderProductId;
}
/**
* Set orderVariationMapping
*
* @param \App\OfficeBrain\Bundle\OrderBundle\Entity\OrderVariationMapping $orderVariationMapping
* @return OrderVariationMaster
*/
public function setOrderVariationMapping(\App\OfficeBrain\Bundle\OrderBundle\Entity\OrderVariationMapping $orderVariationMapping = null)
{
$this->orderVariationMapping = $orderVariationMapping;
return $this;
}
/**
* Get orderVariationMapping
*
* @return \App\OfficeBrain\Bundle\OrderBundle\Entity\OrderVariationMapping
*/
public function getOrderVariationMapping()
{
return $this->orderVariationMapping;
}
/**
* Set erpId
*
* @param integer $erpId
*
* @return OrderVariationMaster
*/
public function setErpId($erpId)
{
$this->erpId = $erpId;
return $this;
}
/**
* Get erpId
*
* @return integer
*/
public function getErpId()
{
return $this->erpId;
}
}