<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="products_models_countries_restrictions")
* @ORM\Entity
*/
class ProductModelCountryRestriction
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/** *
* @var \App\Entity\ProductModel
*
* @ORM\ManyToOne(targetEntity="App\Entity\ProductModel", inversedBy="countryRestrictions")
* @ORM\JoinColumn(name="products_models_id", referencedColumnName="id", onDelete="CASCADE")
*/
private $model;
/**
* @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 getModel(): \App\Entity\ProductModel {
return $this->model;
}
public function setModel(\App\Entity\ProductModel $model): void {
$this->model = $model;
}
}