You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
97 lines
1.8 KiB
97 lines
1.8 KiB
<?php
|
|
|
|
namespace App\Entity;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
/**
|
|
* Invitacion
|
|
*
|
|
* @ORM\Table(name="invitacion", indexes={@ORM\Index(name="template_id", columns={"template_id"}), @ORM\Index(name="evento_id", columns={"evento_id"})})
|
|
* @ORM\Entity
|
|
*/
|
|
class Invitacion
|
|
{
|
|
/**
|
|
* @var int
|
|
*
|
|
* @ORM\Column(name="id", type="integer", nullable=false)
|
|
* @ORM\Id
|
|
* @ORM\GeneratedValue(strategy="IDENTITY")
|
|
*/
|
|
private $id;
|
|
|
|
/**
|
|
* @var \DateTime
|
|
*
|
|
* @ORM\Column(name="send_date", type="datetime", nullable=false)
|
|
*/
|
|
private $sendDate;
|
|
|
|
|
|
|
|
/**
|
|
* @var \Eventos
|
|
*
|
|
* @ORM\ManyToOne(targetEntity="Eventos")
|
|
* @ORM\JoinColumns({
|
|
* @ORM\JoinColumn(name="evento_id", referencedColumnName="id")
|
|
* })
|
|
*/
|
|
private $evento;
|
|
|
|
/**
|
|
* @var \Templates
|
|
*
|
|
* @ORM\ManyToOne(targetEntity="Templates")
|
|
* @ORM\JoinColumns({
|
|
* @ORM\JoinColumn(name="template_id", referencedColumnName="id")
|
|
* })
|
|
*/
|
|
private $template;
|
|
|
|
public function getId(): ?int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function getSendDate(): ?\DateTimeInterface
|
|
{
|
|
return $this->sendDate;
|
|
}
|
|
|
|
public function setSendDate(\DateTimeInterface $sendDate): self
|
|
{
|
|
$this->sendDate = $sendDate;
|
|
|
|
return $this;
|
|
}
|
|
|
|
|
|
|
|
public function getEvento(): ?Eventos
|
|
{
|
|
return $this->evento;
|
|
}
|
|
|
|
public function setEvento(?Eventos $evento): self
|
|
{
|
|
$this->evento = $evento;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getTemplate(): ?Templates
|
|
{
|
|
return $this->template;
|
|
}
|
|
|
|
public function setTemplate(?Templates $template): self
|
|
{
|
|
$this->template = $template;
|
|
|
|
return $this;
|
|
}
|
|
|
|
|
|
}
|