<?php

namespace OfficeBrain\CustomBundle\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="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 $attributeValueId;
    
    /**
     * @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 orderProductId
     *
     * @param \OfficeBrain\CustomBundle\OrderBundle\Entity\OrderProduct $orderProductId
     * @return OrderVariationMaster
     */
    public function setOrderProductId(\OfficeBrain\CustomBundle\OrderBundle\Entity\OrderProduct $orderProductId = null)
    {
        $this->orderProductId = $orderProductId;

        return $this;
    }

    /**
     * Get orderProductId
     *
     * @return \OfficeBrain\CustomBundle\OrderBundle\Entity\OrderProduct 
     */
    public function getOrderProductId()
    {
        return $this->orderProductId;
    }

    /**
     * Set orderVariationMapping
     *
     * @param \OfficeBrain\CustomBundle\OrderBundle\Entity\OrderVariationMapping $orderVariationMapping
     * @return OrderVariationMaster
     */
    public function setOrderVariationMapping(\OfficeBrain\CustomBundle\OrderBundle\Entity\OrderVariationMapping $orderVariationMapping = null)
    {
        $this->orderVariationMapping = $orderVariationMapping;

        return $this;
    }

    /**
     * Get orderVariationMapping
     *
     * @return \OfficeBrain\CustomBundle\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;
    }

    /**
     * Set attributeValueId
     *
     * @param integer $attributeValueId
     *
     * @return OrderVariationMaster
     */
    public function setAttributeValueId($attributeValueId)
    {
        $this->attributeValueId = $attributeValueId;

        return $this;
    }

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