209 lines
3.5 KiB
PHP
209 lines
3.5 KiB
PHP
<?php
|
|
|
|
namespace KupShop\OrderingBundle\Entity;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
/**
|
|
* OrdersHistory.
|
|
*
|
|
* @ORM\Table(name="orders_history", indexes={
|
|
*
|
|
* @ORM\Index(name="id_order", columns={"id_order"}),
|
|
* })
|
|
*
|
|
* @ORM\Entity
|
|
*/
|
|
// * @ORM\Index(name="orders_history_ibfk_2", columns={"admin"})
|
|
class OrderHistory
|
|
{
|
|
/**
|
|
* @var int
|
|
*
|
|
* @ORM\Column(name="id", type="integer")
|
|
*
|
|
* @ORM\Id
|
|
*
|
|
* @ORM\GeneratedValue(strategy="IDENTITY")
|
|
*/
|
|
private $id;
|
|
|
|
/**
|
|
* @var int
|
|
*
|
|
* @ORM\Column(name="id_status", type="integer", nullable=false)
|
|
*/
|
|
private $idStatus = '0';
|
|
|
|
/**
|
|
* @var \DateTime
|
|
*
|
|
* @ORM\Column(name="date", type="datetime", nullable=false)
|
|
*/
|
|
private $date = '0000-00-00 00:00:00';
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="comment", type="text", length=16777215, nullable=true)
|
|
*/
|
|
private $comment;
|
|
|
|
/**
|
|
* @var bool
|
|
*
|
|
* @ORM\Column(name="notified", type="boolean", nullable=false)
|
|
*/
|
|
private $notified;
|
|
|
|
/**
|
|
* @var \KupShop\OrderingBundle\Entity\Order
|
|
*
|
|
* @ORM\ManyToOne(targetEntity="KupShop\OrderingBundle\Entity\Order")
|
|
*
|
|
* @ORM\JoinColumns({
|
|
*
|
|
* @ORM\JoinColumn(name="id_order", referencedColumnName="id")
|
|
* })
|
|
*/
|
|
private $idOrder;
|
|
|
|
/*
|
|
* @var \KupShop\OrderingBundle\Entity\Admins
|
|
*
|
|
* @ORM\ManyToOne(targetEntity="KupShop\OrderingBundle\Entity\Admins")
|
|
* @ORM\JoinColumns({
|
|
* @ORM\JoinColumn(name="admin", referencedColumnName="id")
|
|
* })
|
|
*/
|
|
// private $admin;
|
|
|
|
/**
|
|
* Get id.
|
|
*
|
|
* @return int
|
|
*/
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
/**
|
|
* Set idStatus.
|
|
*
|
|
* @param int $idStatus
|
|
*
|
|
* @return OrderHistory
|
|
*/
|
|
public function setIdStatus($idStatus)
|
|
{
|
|
$this->idStatus = $idStatus;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get idStatus.
|
|
*
|
|
* @return int
|
|
*/
|
|
public function getIdStatus()
|
|
{
|
|
return $this->idStatus;
|
|
}
|
|
|
|
/**
|
|
* Set date.
|
|
*
|
|
* @param \DateTime $date
|
|
*
|
|
* @return OrderHistory
|
|
*/
|
|
public function setDate($date)
|
|
{
|
|
$this->date = $date;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get date.
|
|
*
|
|
* @return \DateTime
|
|
*/
|
|
public function getDate()
|
|
{
|
|
return $this->date;
|
|
}
|
|
|
|
/**
|
|
* Set comment.
|
|
*
|
|
* @param string $comment
|
|
*
|
|
* @return OrderHistory
|
|
*/
|
|
public function setComment($comment)
|
|
{
|
|
$this->comment = $comment;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get comment.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getComment()
|
|
{
|
|
return $this->comment;
|
|
}
|
|
|
|
/**
|
|
* Set notified.
|
|
*
|
|
* @param bool $notified
|
|
*
|
|
* @return OrderHistory
|
|
*/
|
|
public function setNotified($notified)
|
|
{
|
|
$this->notified = $notified;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get notified.
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function getNotified()
|
|
{
|
|
return $this->notified;
|
|
}
|
|
|
|
/**
|
|
* Set idOrder.
|
|
*
|
|
* @return OrderHistory
|
|
*/
|
|
public function setIdOrder(?Order $idOrder = null)
|
|
{
|
|
$this->idOrder = $idOrder;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get idOrder.
|
|
*
|
|
* @return \KupShop\OrderingBundle\Entity\Order
|
|
*/
|
|
public function getIdOrder()
|
|
{
|
|
return $this->idOrder;
|
|
}
|
|
}
|