vendor/theatre/core/src/Entity/Regions.php line 13

Open in your IDE?
  1. <?php
  2. namespace TheatreCore\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Regions
  6.  *
  7.  * @ORM\Table(name="regions", uniqueConstraints={@ORM\UniqueConstraint(name="regionmaj", columns={"regionmaj"}), @ORM\UniqueConstraint(name="region", columns={"region"}), @ORM\UniqueConstraint(name="idregioninsee", columns={"idregioninsee"})}, indexes={@ORM\Index(name="idcontact", columns={"idcontact"}), @ORM\Index(name="idbigregion", columns={"idbigregion"})})
  8.  * @ORM\Entity(repositoryClass="TheatreCore\Repository\RegionsRepository")
  9.  */
  10. class Regions
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="idregion", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $idregion;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="region", type="string", length=60, nullable=false)
  24.      */
  25.     private $region;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="regionmaj", type="string", length=60, nullable=false)
  30.      */
  31.     private $regionmaj;
  32.     /**
  33.      * @var bool
  34.      *
  35.      * @ORM\Column(name="idregioninsee", type="boolean", nullable=false)
  36.      */
  37.     private $idregioninsee;
  38.     /**
  39.      * @var \Contacts
  40.      *
  41.      * @ORM\ManyToOne(targetEntity="Contacts")
  42.      * @ORM\JoinColumns({
  43.      *   @ORM\JoinColumn(name="idcontact", referencedColumnName="idcontact")
  44.      * })
  45.      */
  46.     private $idcontact;
  47.     /**
  48.      * @var \Bigregions
  49.      *
  50.      * @ORM\ManyToOne(targetEntity="Bigregions")
  51.      * @ORM\JoinColumns({
  52.      *   @ORM\JoinColumn(name="idbigregion", referencedColumnName="idbigregion")
  53.      * })
  54.      */
  55.     private $idbigregion;
  56.     /**
  57.      * Get idregion.
  58.      *
  59.      * @return bool
  60.      */
  61.     public function getIdregion()
  62.     {
  63.         return $this->idregion;
  64.     }
  65.     /**
  66.      * Set region.
  67.      *
  68.      * @param string $region
  69.      *
  70.      * @return Regions
  71.      */
  72.     public function setRegion($region)
  73.     {
  74.         $this->region $region;
  75.         return $this;
  76.     }
  77.     /**
  78.      * Get region.
  79.      *
  80.      * @return string
  81.      */
  82.     public function getRegion()
  83.     {
  84.         return $this->region;
  85.     }
  86.     /**
  87.      * Set regionmaj.
  88.      *
  89.      * @param string $regionmaj
  90.      *
  91.      * @return Regions
  92.      */
  93.     public function setRegionmaj($regionmaj)
  94.     {
  95.         $this->regionmaj $regionmaj;
  96.         return $this;
  97.     }
  98.     /**
  99.      * Get regionmaj.
  100.      *
  101.      * @return string
  102.      */
  103.     public function getRegionmaj()
  104.     {
  105.         return $this->regionmaj;
  106.     }
  107.     /**
  108.      * Set idregioninsee.
  109.      *
  110.      * @param bool $idregioninsee
  111.      *
  112.      * @return Regions
  113.      */
  114.     public function setIdregioninsee($idregioninsee)
  115.     {
  116.         $this->idregioninsee $idregioninsee;
  117.         return $this;
  118.     }
  119.     /**
  120.      * Get idregioninsee.
  121.      *
  122.      * @return bool
  123.      */
  124.     public function getIdregioninsee()
  125.     {
  126.         return $this->idregioninsee;
  127.     }
  128.     /**
  129.      * Set idcontact.
  130.      *
  131.      * @param \Contacts|null $idcontact
  132.      *
  133.      * @return Regions
  134.      */
  135.     public function setIdcontact(Contacts $idcontact null)
  136.     {
  137.         $this->idcontact $idcontact;
  138.         return $this;
  139.     }
  140.     /**
  141.      * Get idcontact.
  142.      *
  143.      * @return \Contacts|null
  144.      */
  145.     public function getIdcontact()
  146.     {
  147.         return $this->idcontact;
  148.     }
  149.     /**
  150.      * Set idbigregion.
  151.      *
  152.      * @param \Bigregions|null $idbigregion
  153.      *
  154.      * @return Regions
  155.      */
  156.     public function setIdbigregion(Bigregions $idbigregion null)
  157.     {
  158.         $this->idbigregion $idbigregion;
  159.         return $this;
  160.     }
  161.     /**
  162.      * Get idbigregion.
  163.      *
  164.      * @return \Bigregions|null
  165.      */
  166.     public function getIdbigregion()
  167.     {
  168.         return $this->idbigregion;
  169.     }
  170. }