<?php
namespace TheatreCore\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* SpectacleContact
*
* @ORM\Table(name="spectacle_contact", indexes={@ORM\Index(name="idspectacle", columns={"idspectacle"}), @ORM\Index(name="idcontact", columns={"idcontact"}), @ORM\Index(name="idrole", columns={"idrole"})})
* @ORM\Entity(repositoryClass="TheatreCore\Repository\SpectacleContactRepository")
*/
class SpectacleContact
{
/**
* @var \Spectacles
*
* @ORM\Id
* @ORM\GeneratedValue(strategy="NONE")
* @ORM\OneToOne(targetEntity="Spectacles")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="idspectacle", referencedColumnName="idspectacle")
* })
*/
private $idspectacle;
/**
* @var \Contacts
*
* @ORM\Id
* @ORM\GeneratedValue(strategy="NONE")
* @ORM\OneToOne(targetEntity="Contacts")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="idcontact", referencedColumnName="idcontact")
* })
*/
private $idcontact;
/**
* @var \Roles
*
* @ORM\Id
* @ORM\GeneratedValue(strategy="NONE")
* @ORM\OneToOne(targetEntity="Roles")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="idrole", referencedColumnName="idrole")
* })
*/
private $idrole;
/**
* Set idspectacle.
*
* @param \Spectacles $idspectacle
*
* @return SpectacleContact
*/
public function setIdspectacle(Spectacles $idspectacle)
{
$this->idspectacle = $idspectacle;
return $this;
}
/**
* Get idspectacle.
*
* @return \Spectacles
*/
public function getIdspectacle()
{
return $this->idspectacle;
}
/**
* Set idcontact.
*
* @param \Contacts $idcontact
*
* @return SpectacleContact
*/
public function setIdcontact(Contacts $idcontact)
{
$this->idcontact = $idcontact;
return $this;
}
/**
* Get idcontact.
*
* @return \Contacts
*/
public function getIdcontact()
{
return $this->idcontact;
}
/**
* Set idrole.
*
* @param \Roles $idrole
*
* @return SpectacleContact
*/
public function setIdrole(Roles $idrole)
{
$this->idrole = $idrole;
return $this;
}
/**
* Get idrole.
*
* @return \Roles
*/
public function getIdrole()
{
return $this->idrole;
}
}