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

67 lines
923 B
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
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-03-15 16:18:06 +01:00
* @ORM\ManyToOne(targetEntity="Product", inversedBy="sellRecords")
2018-03-15 16:04:00 +01:00
*/
2018-03-15 16:18:06 +01:00
private $products;
2018-03-15 16:04:00 +01:00
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="datetime")
*/
private $date;
/**
* @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;
}
/**
* @param mixed $date
*/
public function setDate( $date ) {
$this->date = $date;
}
}