<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* ManufacturerCountry
*
* @ORM\Table(name="products_countries_restrictions")
* @ORM\Entity
*/
class ProductCountryRestriction
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/** *
* @var \App\Entity\Product
*
* @ORM\ManyToOne(targetEntity="App\Entity\Product", inversedBy="countryRestrictions")
* @ORM\JoinColumn(name="products_id", referencedColumnName="products_id", onDelete="CASCADE")
*/
private $product;
/**
* @var \App\Entity\Country
*
* @ORM\ManyToOne(targetEntity="App\Entity\Country")
* @ORM\JoinColumn(name="countries_id", referencedColumnName="countries_id", onDelete="CASCADE")
*/
private $country;
public function getId(): int {
return $this->id;
}
public function getCountry(): \App\Entity\Country {
return $this->country;
}
public function setCountry(\App\Entity\Country $country): void {
$this->country = $country;
}
public function getProduct(): \App\Entity\Product {
return $this->product;
}
public function setProduct(\App\Entity\Product $product): void {
$this->product = $product;
}
}