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

Open in your IDE?
  1. <?php
  2. namespace TheatreCore\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * SpectacleContact
  6.  *
  7.  * @ORM\Table(name="spectacle_contact", indexes={@ORM\Index(name="idspectacle", columns={"idspectacle"}), @ORM\Index(name="idcontact", columns={"idcontact"}), @ORM\Index(name="idrole", columns={"idrole"})})
  8.  * @ORM\Entity(repositoryClass="TheatreCore\Repository\SpectacleContactRepository")
  9.  */
  10. class SpectacleContact
  11. {
  12.     /**
  13.      * @var \Spectacles
  14.      *
  15.      * @ORM\Id
  16.      * @ORM\GeneratedValue(strategy="NONE")
  17.      * @ORM\OneToOne(targetEntity="Spectacles")
  18.      * @ORM\JoinColumns({
  19.      *   @ORM\JoinColumn(name="idspectacle", referencedColumnName="idspectacle")
  20.      * })
  21.      */
  22.     private $idspectacle;
  23.     /**
  24.      * @var \Contacts
  25.      *
  26.      * @ORM\Id
  27.      * @ORM\GeneratedValue(strategy="NONE")
  28.      * @ORM\OneToOne(targetEntity="Contacts")
  29.      * @ORM\JoinColumns({
  30.      *   @ORM\JoinColumn(name="idcontact", referencedColumnName="idcontact")
  31.      * })
  32.      */
  33.     private $idcontact;
  34.     /**
  35.      * @var \Roles
  36.      *
  37.      * @ORM\Id
  38.      * @ORM\GeneratedValue(strategy="NONE")
  39.      * @ORM\OneToOne(targetEntity="Roles")
  40.      * @ORM\JoinColumns({
  41.      *   @ORM\JoinColumn(name="idrole", referencedColumnName="idrole")
  42.      * })
  43.      */
  44.     private $idrole;
  45.     /**
  46.      * Set idspectacle.
  47.      *
  48.      * @param \Spectacles $idspectacle
  49.      *
  50.      * @return SpectacleContact
  51.      */
  52.     public function setIdspectacle(Spectacles $idspectacle)
  53.     {
  54.         $this->idspectacle $idspectacle;
  55.         return $this;
  56.     }
  57.     /**
  58.      * Get idspectacle.
  59.      *
  60.      * @return \Spectacles
  61.      */
  62.     public function getIdspectacle()
  63.     {
  64.         return $this->idspectacle;
  65.     }
  66.     /**
  67.      * Set idcontact.
  68.      *
  69.      * @param \Contacts $idcontact
  70.      *
  71.      * @return SpectacleContact
  72.      */
  73.     public function setIdcontact(Contacts $idcontact)
  74.     {
  75.         $this->idcontact $idcontact;
  76.         return $this;
  77.     }
  78.     /**
  79.      * Get idcontact.
  80.      *
  81.      * @return \Contacts
  82.      */
  83.     public function getIdcontact()
  84.     {
  85.         return $this->idcontact;
  86.     }
  87.     /**
  88.      * Set idrole.
  89.      *
  90.      * @param \Roles $idrole
  91.      *
  92.      * @return SpectacleContact
  93.      */
  94.     public function setIdrole(Roles $idrole)
  95.     {
  96.         $this->idrole $idrole;
  97.         return $this;
  98.     }
  99.     /**
  100.      * Get idrole.
  101.      *
  102.      * @return \Roles
  103.      */
  104.     public function getIdrole()
  105.     {
  106.         return $this->idrole;
  107.     }
  108. }