<?phpnamespace App\Entity;use App\Entity\Product\ConfirmedProduct;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity() * @ORM\Table(name="malys_old_price") * @ORM\HasLifecycleCallbacks() * @package App\Entity */class OldPrice{ /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ protected $id; /** * Many OldPrice have One Product * @var ConfirmedProduct $product * @ORM\ManyToOne(targetEntity="App\Entity\Product\ConfirmedProduct", inversedBy="oldPrices") * @ORM\JoinColumn(name="product_id", referencedColumnName="id") */ protected $product; /** * Many OldPrice have One Customer * @var Customer $customer * @ORM\ManyToOne(targetEntity="App\Entity\Customer", inversedBy="oldPrices") * @ORM\JoinColumn(name="customer_id", referencedColumnName="id") */ protected $customer; /** * @var float * * @ORM\Column(name="price", type="float", nullable=false) */ protected $price; /** * @return int */ public function getId() { return $this->id; } /** * @param int $id */ public function setId($id) { $this->id = $id; } /** * @return ConfirmedProduct */ public function getProduct() { return $this->product; } /** * @param ConfirmedProduct $product */ public function setProduct(ConfirmedProduct $product) { $this->product = $product; } /** * @return Customer */ public function getCustomer() { return $this->customer; } /** * @param Customer $customer */ public function setCustomer(Customer $customer) { $this->customer = $customer; } /** * @return float */ public function getPrice() { return $this->price; } /** * @param float $price */ public function setPrice($price) { $this->price = $price; }}