caisse-bliss/src/AppBundle/Entity/SellRecord.php

161 lines
2.3 KiB
PHP
Raw Normal View History

2018-03-15 16:04:00 +01:00
<?php
2018-04-04 17:42:27 +02:00
namespace AppBundle\Entity;
2018-03-15 16:04:00 +01:00
2018-04-05 15:05:04 +02:00
use AppBundle\Traits\Commentable;
2018-03-15 16:04:00 +01:00
use Doctrine\ORM\Mapping as ORM;
/**
2018-04-04 17:42:27 +02:00
* @ORM\Entity(repositoryClass="AppBundle\Repository\SellRecordRepository")
2018-03-15 16:04:00 +01:00
*/
class SellRecord {
2018-04-05 16:40:40 +02:00
use Commentable;
2018-03-15 16:04:00 +01:00
/**
2018-04-05 16:40:40 +02:00
* @ORM\OneToMany(targetEntity="AppBundle\Entity\ProductSold", mappedBy="sellRecords")
2018-03-15 16:04:00 +01:00
*/
2018-04-05 16:40:40 +02:00
private $productsSold;
2018-03-15 16:04:00 +01:00
/**
* @ORM\Id
* @ORM\GeneratedValue
2018-04-05 14:21:32 +02:00
* @ORM\Column(name="id")
*/
private $id;
/**
2018-03-15 16:04:00 +01:00
* @ORM\Column(type="datetime")
*/
private $date;
2018-04-05 14:21:32 +02:00
/**
* @ORM\Column(type="decimal", scale=2, nullable=true)
*/
private $amount;
2018-04-05 15:05:04 +02:00
/**
* @var
* @ORM\ManyToOne(targetEntity="AppBundle\Entity\Festival",inversedBy="sellRecords")
*/
private $festival;
2018-04-05 16:40:40 +02:00
/**
* @ORM\ManyToOne(targetEntity="AppBundle\Entity\User", inversedBy="sellRecords")
*/
private $user;
/**
* @return mixed
*/
public function getComment() {
return $this->comment;
}
/**
* @param mixed $comment
*/
public function setComment( $comment ) {
$this->comment = $comment;
}
/**
* @return mixed
*/
public function getProductsSold() {
return $this->productsSold;
}
2018-04-05 15:05:04 +02:00
2018-04-05 16:40:40 +02:00
/**
* @param mixed $productsSold
*/
public function setProductsSold( $productsSold ) {
$this->productsSold = $productsSold;
}
2018-04-05 15:05:04 +02:00
/**
* @return mixed
*/
public function getFestival() {
return $this->festival;
}
/**
* @param mixed $festival
*/
public function setFestival( $festival ) {
$this->festival = $festival;
}
/**
* @return mixed
*/
public function getUser() {
return $this->user;
}
/**
* @param mixed $user
*/
public function setUser( $user ) {
$this->user = $user;
}
2018-04-05 14:21:32 +02:00
/**
* @return mixed
*/
public function getAmount() {
return $this->amount;
}
/**
* @param mixed $amount
*/
public function setAmount( $amount ) {
$this->amount = $amount;
}
2018-03-15 16:04:00 +01:00
/**
* @return mixed
*/
public function getId() {
return $this->id;
}
/**
* @param mixed $id
*/
public function setId( $id ) {
$this->id = $id;
}
/**
* @return mixed
*/
2018-03-15 16:18:06 +01:00
public function getProducts() {
return $this->products;
2018-03-15 16:04:00 +01:00
}
/**
2018-03-15 16:18:06 +01:00
* @param mixed $products
2018-03-15 16:04:00 +01:00
*/
2018-03-15 16:18:06 +01:00
public function setProducts( $products ) {
$this->products = $products;
2018-03-15 16:04:00 +01:00
}
/**
* @return mixed
*/
public function getDate() {
return $this->date;
}
/**
2018-04-05 14:21:32 +02:00
* @param \DateTime $date
2018-03-15 16:04:00 +01:00
*/
2018-04-05 14:21:32 +02:00
public function setDate( \DateTime $date ) {
2018-03-15 16:04:00 +01:00
$this->date = $date;
}
}