src/Entity/Fielpet/View/EventosView.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Fielpet\View;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8. * EventosView
  9. *
  10. * @ORM\Table(name="eventos_view", indexes={@ORM\Index(name="IDX_A49E84139F276F38", columns={"mascotaId"}), @ORM\Index(name="IDX_A49E8413EA0F39D2", columns={"eventoAnteriorId"})})
  11. * @ORM\Entity
  12. */
  13. class EventosView
  14. {
  15. /**
  16. * @var int
  17. *
  18. * @ORM\Column(name="id", type="integer", nullable=false)
  19. * @ORM\Id
  20. * @ORM\GeneratedValue(strategy="SEQUENCE")
  21. * @ORM\SequenceGenerator(sequenceName="Eventos_id_seq", allocationSize=1, initialValue=1)
  22. */
  23. private $id;
  24. /**
  25. * @var string|null
  26. *
  27. * @ORM\Column(name="tipo", type="string", length=255, nullable=true)
  28. */
  29. private $tipo;
  30. /**
  31. * @var \DateTime|null
  32. *
  33. * @ORM\Column(name="event_on", type="custom_datetimetz", nullable=true)
  34. */
  35. private $eventOn;
  36. /**
  37. * @var bool|null
  38. *
  39. * @ORM\Column(name="done", type="boolean", nullable=true)
  40. */
  41. private $done = false;
  42. /**
  43. * @var string|null
  44. *
  45. * @ORM\Column(name="title", type="string", length=255, nullable=true)
  46. */
  47. private $title;
  48. /**
  49. * @var string|null
  50. *
  51. * @ORM\Column(name="description", type="string", length=255, nullable=true)
  52. */
  53. private $description;
  54. /**
  55. * @var \DateTime
  56. *
  57. * @ORM\Column(name="created_at", type="custom_datetimetz", nullable=false)
  58. */
  59. private $createdAt;
  60. /**
  61. * @var \DateTime
  62. *
  63. * @ORM\Column(name="updated_at", type="custom_datetimetz", nullable=false)
  64. */
  65. private $updatedAt;
  66. /**
  67. * @var \MascotasView
  68. *
  69. * @ORM\ManyToOne(targetEntity="MascotasView")
  70. * @ORM\JoinColumns({
  71. * @ORM\JoinColumn(name="mascota_id", referencedColumnName="id")
  72. * })
  73. */
  74. private $mascotaId;
  75. /**
  76. * @var \EventosView
  77. *
  78. * @ORM\ManyToOne(targetEntity="EventosView")
  79. * @ORM\JoinColumns({
  80. * @ORM\JoinColumn(name="evento_anterior_id", referencedColumnName="id")
  81. * })
  82. */
  83. private $eventoAnteriorId;
  84. /**
  85. * @ORM\OneToMany(targetEntity="EventosSubVetformView", mappedBy="eventoId", cascade={"persist"})
  86. **/
  87. private $eventosSubVetform;
  88. public function __construct()
  89. {
  90. $this->eventosSubVetform = new \Doctrine\Common\Collections\ArrayCollection();
  91. }
  92. public function getId(): ?int
  93. {
  94. return $this->id;
  95. }
  96. public function getTipo(): ?string
  97. {
  98. return $this->tipo;
  99. }
  100. public function setTipo(?string $tipo): static
  101. {
  102. $this->tipo = $tipo;
  103. return $this;
  104. }
  105. public function getEventOn()
  106. {
  107. return $this->eventOn;
  108. }
  109. public function setEventOn($eventOn): static
  110. {
  111. $this->eventOn = $eventOn;
  112. return $this;
  113. }
  114. public function isDone(): ?bool
  115. {
  116. return $this->done;
  117. }
  118. public function setDone(?bool $done): static
  119. {
  120. $this->done = $done;
  121. return $this;
  122. }
  123. public function getTitle(): ?string
  124. {
  125. return $this->title;
  126. }
  127. public function setTitle(?string $title): static
  128. {
  129. $this->title = $title;
  130. return $this;
  131. }
  132. public function getDescription(): ?string
  133. {
  134. return $this->description;
  135. }
  136. public function setDescription(?string $description): static
  137. {
  138. $this->description = $description;
  139. return $this;
  140. }
  141. public function getCreatedAt()
  142. {
  143. return $this->createdAt;
  144. }
  145. public function setCreatedAt($createdAt): static
  146. {
  147. $this->createdAt = $createdAt;
  148. return $this;
  149. }
  150. public function getUpdatedAt()
  151. {
  152. return $this->updatedAt;
  153. }
  154. public function setUpdatedAt($updatedAt): static
  155. {
  156. $this->updatedAt = $updatedAt;
  157. return $this;
  158. }
  159. public function getMascotaId(): ?MascotasView
  160. {
  161. return $this->mascotaId;
  162. }
  163. public function setMascotaId(?MascotasView $mascotaId): static
  164. {
  165. $this->mascotaId = $mascotaId;
  166. return $this;
  167. }
  168. public function getEventoAnteriorId(): ?self
  169. {
  170. return $this->eventoAnteriorId;
  171. }
  172. public function setEventoAnteriorId(?self $eventoAnteriorId): static
  173. {
  174. $this->eventoAnteriorId = $eventoAnteriorId;
  175. return $this;
  176. }
  177. /**
  178. * @return Collection<int, EventosSubVetformView>
  179. */
  180. public function getEventosSubVetform(): Collection
  181. {
  182. return $this->eventosSubVetform;
  183. }
  184. public function addEventosSubVetform(EventosSubVetformView $eventosSubVetform): static
  185. {
  186. if (!$this->eventosSubVetform->contains($eventosSubVetform)) {
  187. $this->eventosSubVetform->add($eventosSubVetform);
  188. $eventosSubVetform->setEventoId($this);
  189. }
  190. return $this;
  191. }
  192. public function removeEventosSubVetform(EventosSubVetformView $eventosSubVetform): static
  193. {
  194. if ($this->eventosSubVetform->removeElement($eventosSubVetform)) {
  195. // set the owning side to null (unless already changed)
  196. if ($eventosSubVetform->getEventoId() === $this) {
  197. $eventosSubVetform->setEventoId(null);
  198. }
  199. }
  200. return $this;
  201. }
  202. }