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

  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * Invitacion
  6. *
  7. * @ORM\Table(name="invitacion", indexes={@ORM\Index(name="template_id", columns={"template_id"}), @ORM\Index(name="evento_id", columns={"evento_id"})})
  8. * @ORM\Entity
  9. */
  10. class Invitacion
  11. {
  12. /**
  13. * @var int
  14. *
  15. * @ORM\Column(name="id", type="integer", nullable=false)
  16. * @ORM\Id
  17. * @ORM\GeneratedValue(strategy="IDENTITY")
  18. */
  19. private $id;
  20. /**
  21. * @var \DateTime
  22. *
  23. * @ORM\Column(name="send_date", type="datetime", nullable=false)
  24. */
  25. private $sendDate;
  26. /**
  27. * @var \Eventos
  28. *
  29. * @ORM\ManyToOne(targetEntity="Eventos")
  30. * @ORM\JoinColumns({
  31. * @ORM\JoinColumn(name="evento_id", referencedColumnName="id")
  32. * })
  33. */
  34. private $evento;
  35. /**
  36. * @var \Templates
  37. *
  38. * @ORM\ManyToOne(targetEntity="Templates")
  39. * @ORM\JoinColumns({
  40. * @ORM\JoinColumn(name="template_id", referencedColumnName="id")
  41. * })
  42. */
  43. private $template;
  44. public function getId(): ?int
  45. {
  46. return $this->id;
  47. }
  48. public function getSendDate(): ?\DateTimeInterface
  49. {
  50. return $this->sendDate;
  51. }
  52. public function setSendDate(\DateTimeInterface $sendDate): self
  53. {
  54. $this->sendDate = $sendDate;
  55. return $this;
  56. }
  57. public function getEvento(): ?Eventos
  58. {
  59. return $this->evento;
  60. }
  61. public function setEvento(?Eventos $evento): self
  62. {
  63. $this->evento = $evento;
  64. return $this;
  65. }
  66. public function getTemplate(): ?Templates
  67. {
  68. return $this->template;
  69. }
  70. public function setTemplate(?Templates $template): self
  71. {
  72. $this->template = $template;
  73. return $this;
  74. }
  75. }