2018-04-05 15:05:04 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace AppBundle\Entity;
|
|
|
|
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @ORM\Entity(repositoryClass="AppBundle\Repository\ProductRepository")
|
|
|
|
*/
|
|
|
|
class ProductSold extends Product {
|
|
|
|
|
|
|
|
/**
|
2018-04-05 16:40:40 +02:00
|
|
|
* @ORM\ManyToOne(targetEntity="SellRecord", inversedBy="productsSold")
|
2018-04-05 15:05:04 +02:00
|
|
|
*/
|
|
|
|
private $sellRecords;
|
|
|
|
|
2018-04-05 16:40:40 +02:00
|
|
|
/**
|
|
|
|
* @ORM\ManyToOne(targetEntity="AppBundle\Entity\User", inversedBy="productsSold")
|
|
|
|
*/
|
|
|
|
private $user;
|
2018-04-05 15:05:04 +02:00
|
|
|
}
|