<?php
namespace App\OfficeBrain\Bundle\RequestInfoBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Doctrine\Common\Collections\ArrayCollection;
/**
* RequestInfo
*
* @ORM\Table(name="tbl_request_info", options={"type"="InnoDB","charset"="utf8","collate"="utf8_unicode_ci"})
* @ORM\Entity(repositoryClass="App\OfficeBrain\Bundle\RequestInfoBundle\Entity\RequestInfoRepository")
* @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false)
*/
class RequestInfo
{
/**
* @var integer
*
* @ORM\Column(name="id",type="bigint", length=20 , options={"unsigned"=true})
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var integer
*
* @ORM\Column(name="guest_id", type="bigint", length=20, nullable=true, options={"unsigned"=true})
*/
private $guestId;
/**
* @var integer
*
* @ORM\Column(name="user_id", type="bigint", length=20, nullable=true, options={"unsigned"=true})
*/
private $userId;
/**
* @var text
*
* @ORM\Column(name="note", type="text", nullable=true)
*/
private $note;
/**
* @var text
*
* @ORM\Column(name="culture", type="text", length=60, nullable=true)
*/
private $culture = 'en_us';
/**
* @var integer
*
* @ORM\Column(name="preffered_state", type="bigint", length=20, nullable=true, options={"unsigned"=true})
*/
private $state;
/**
* @var integer
*
* @ORM\Column(name="preffered_distributor", type="bigint", length=20, nullable=true, options={"unsigned"=true})
*/
private $distributor;
/**
* @var integer
*
* @ORM\Column(name="created_uid", type="bigint", length=20, options={"unsigned"=true})
*/
private $createdUid;
/**
* @var integer
*
* @ORM\Column(name="updated_uid", type="bigint", length=20, nullable=true,options={"unsigned"=true})
*/
private $upatedUid;
/**
* @var integer
*
* @ORM\Column(name="deleted_uid", type="bigint", length=20, nullable=true, options={"unsigned"=true})
*/
private $deletedUid;
/**
* @var integer
*
* @ORM\Column(name="instance_id", type="bigint", length=20, options={"unsigned"=true})
*/
private $instanceId;
/**
* @var string
*
* @ORM\Column(name="instance_type", type="string", length=255)
*/
private $instanceType;
/**
* @var \DateTime
* @Gedmo\Timestampable(on="create")
* @ORM\Column(name="created_at", type="datetime")
*/
private $createdAt;
/**
* @var \DateTime
* @Gedmo\Timestampable(on="update")
* @ORM\Column(name="updated_at", type="datetime", nullable=true)
*/
private $updatedAt;
/**
* @var \DateTime
* @ORM\Column(name="deleted_at", type="datetime", nullable=true)
*/
private $deletedAt;
/**
* @ORM\OneToMany(targetEntity="ProductRequestInfo", mappedBy="requestId")
*/
private $product_info_request;
/**
* @ORM\OneToMany(targetEntity="CommentRequestInfo", mappedBy="requestId")
*/
private $comment_info_request;
public $product_id;
/**
* @var integer
*
* @ORM\Column(name="erp_id", type="bigint", length=20, nullable=true, options={"unsigned"=true})
*/
private $erpId;
public function __construct() {
$this->product_info_request = new ArrayCollection();
$this->comment_info_request = new ArrayCollection();
}
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set guestId
*
* @param integer $guestId
* @return RequestInfo
*/
public function setGuestId($guestId)
{
$this->guestId = $guestId;
return $this;
}
/**
* Get guestId
*
* @return integer
*/
public function getGuestId()
{
return $this->guestId;
}
/**
* Set userId
*
* @param integer $userId
* @return RequestInfo
*/
public function setUserId($userId)
{
$this->userId = $userId;
return $this;
}
/**
* Get userId
*
* @return integer
*/
public function getUserId()
{
return $this->userId;
}
/**
* Set note
*
* @param string $note
* @return RequestInfo
*/
public function setNote($note)
{
$this->note = $note;
return $this;
}
/**
* Get note
*
* @return string
*/
public function getNote()
{
return $this->note;
}
/**
* Set state
*
* @param integer $state
* @return RequestInfo
*/
public function setState($state)
{
$this->state = $state;
return $this;
}
/**
* Get state
*
* @return integer
*/
public function getState()
{
return $this->state;
}
/**
* Set distributor
*
* @param integer $distributor
* @return RequestInfo
*/
public function setDistributor($distributor)
{
$this->distributor = $distributor;
return $this;
}
/**
* Get distributor
*
* @return integer
*/
public function getDistributor()
{
return $this->distributor;
}
/**
* Set createdUid
*
* @param integer $createdUid
* @return RequestInfo
*/
public function setCreatedUid($createdUid)
{
$this->createdUid = $createdUid;
return $this;
}
/**
* Get createdUid
*
* @return integer
*/
public function getCreatedUid()
{
return $this->createdUid;
}
/**
* Set upatedUid
*
* @param integer $upatedUid
* @return RequestInfo
*/
public function setUpatedUid($upatedUid)
{
$this->upatedUid = $upatedUid;
return $this;
}
/**
* Get upatedUid
*
* @return integer
*/
public function getUpatedUid()
{
return $this->upatedUid;
}
/**
* Set deletedUid
*
* @param integer $deletedUid
* @return RequestInfo
*/
public function setDeletedUid($deletedUid)
{
$this->deletedUid = $deletedUid;
return $this;
}
/**
* Get deletedUid
*
* @return integer
*/
public function getDeletedUid()
{
return $this->deletedUid;
}
/**
* Set instanceId
*
* @param integer $instanceId
* @return RequestInfo
*/
public function setInstanceId($instanceId)
{
$this->instanceId = $instanceId;
return $this;
}
/**
* Get instanceId
*
* @return integer
*/
public function getInstanceId()
{
return $this->instanceId;
}
/**
* Set instanceType
*
* @param string $instanceType
* @return RequestInfo
*/
public function setInstanceType($instanceType)
{
$this->instanceType = $instanceType;
return $this;
}
/**
* Get instanceType
*
* @return string
*/
public function getInstanceType()
{
return $this->instanceType;
}
/**
* Set createdAt
*
* @param \DateTime $createdAt
* @return RequestInfo
*/
public function setCreatedAt($createdAt)
{
$this->createdAt = $createdAt;
return $this;
}
/**
* Get createdAt
*
* @return \DateTime
*/
public function getCreatedAt()
{
return $this->createdAt;
}
/**
* Set updatedAt
*
* @param \DateTime $updatedAt
* @return RequestInfo
*/
public function setUpdatedAt($updatedAt)
{
$this->updatedAt = $updatedAt;
return $this;
}
/**
* Get updatedAt
*
* @return \DateTime
*/
public function getUpdatedAt()
{
return $this->updatedAt;
}
/**
* Set deletedAt
*
* @param \DateTime $deletedAt
* @return RequestInfo
*/
public function setDeletedAt($deletedAt)
{
$this->deletedAt = $deletedAt;
return $this;
}
/**
* Get deletedAt
*
* @return \DateTime
*/
public function getDeletedAt()
{
return $this->deletedAt;
}
/**
* Set erpId
*
* @param integer $erpId
* @return RequestInfo
*/
public function setErpId($erpId)
{
$this->erpId = $erpId;
return $this;
}
/**
* Get erpId
*
* @return integer
*/
public function getErpId()
{
return $this->erpId;
}
/**
* Add product_info_request
*
* @param \App\OfficeBrain\Bundle\RequestInfoBundle\Entity\ProductRequestInfo $productInfoRequest
* @return RequestInfo
*/
public function addProductInfoRequest(\App\OfficeBrain\Bundle\RequestInfoBundle\Entity\ProductRequestInfo $productInfoRequest)
{
$this->product_info_request[] = $productInfoRequest;
return $this;
}
/**
* Remove product_info_request
*
* @param \App\OfficeBrain\Bundle\RequestInfoBundle\Entity\ProductRequestInfo $productInfoRequest
*/
public function removeProductInfoRequest(\App\OfficeBrain\Bundle\RequestInfoBundle\Entity\ProductRequestInfo $productInfoRequest)
{
$this->product_info_request->removeElement($productInfoRequest);
}
/**
* Get product_info_request
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getProductInfoRequest()
{
return $this->product_info_request;
}
/**
* Add comment_info_request
*
* @param \App\OfficeBrain\Bundle\RequestInfoBundle\Entity\CommentRequestInfo $commentInfoRequest
* @return RequestInfo
*/
public function addCommentInfoRequest(\App\OfficeBrain\Bundle\RequestInfoBundle\Entity\CommentRequestInfo $commentInfoRequest)
{
$this->comment_info_request[] = $commentInfoRequest;
return $this;
}
/**
* Remove comment_info_request
*
* @param \App\OfficeBrain\Bundle\RequestInfoBundle\Entity\CommentRequestInfo $commentInfoRequest
*/
public function removeCommentInfoRequest(\App\OfficeBrain\Bundle\RequestInfoBundle\Entity\CommentRequestInfo $commentInfoRequest)
{
$this->comment_info_request->removeElement($commentInfoRequest);
}
/**
* Get comment_info_request
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getCommentInfoRequest()
{
return $this->comment_info_request;
}
/**
* Set culture
*
* @param string $culture
* @return RequestInfo
*/
public function setCulture($culture)
{
$this->culture = $culture;
return $this;
}
/**
* Get culture
*
* @return string
*/
public function getCulture()
{
return $this->culture;
}
}