74 lines
970 B
PHP
74 lines
970 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Entity;
|
||
|
|
||
|
use Doctrine\ORM\Mapping as ORM;
|
||
|
|
||
|
/**
|
||
|
* @ORM\Entity(repositoryClass="App\Repository\SellRecordRepository")
|
||
|
*/
|
||
|
class SellRecord {
|
||
|
/**
|
||
|
* @ORM\Id
|
||
|
* @ORM\GeneratedValue
|
||
|
* @ORM\Column(type="integer")
|
||
|
*/
|
||
|
private $id;
|
||
|
|
||
|
/**
|
||
|
* @ORM/ManyToOne(targetEntity='Product')
|
||
|
*/
|
||
|
private $product;
|
||
|
|
||
|
|
||
|
/**
|
||
|
* @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
|
||
|
*/
|
||
|
public function getProduct() {
|
||
|
return $this->product;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @param mixed $product
|
||
|
*/
|
||
|
public function setProduct( $product ) {
|
||
|
$this->product = $product;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @return mixed
|
||
|
*/
|
||
|
public function getDate() {
|
||
|
return $this->date;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @param mixed $date
|
||
|
*/
|
||
|
public function setDate( $date ) {
|
||
|
$this->date = $date;
|
||
|
}
|
||
|
|
||
|
}
|