src/Entity/ParticipanteGrupoDetalle.php line 19

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. /**
  7. * @ORM\Entity
  8. * @ORM\Table(
  9. * name="participante_grupo_detalle",
  10. * indexes={
  11. * @ORM\Index(name="idx_etp_participante", columns={"participante_id"}),
  12. * @ORM\Index(name="idx_etp_deleted_at", columns={"deleted_at"})
  13. * }
  14. * )
  15. */
  16. class ParticipanteGrupoDetalle extends \App\Entity\BaseEntity
  17. {
  18. /**
  19. * @ORM\Id
  20. * @ORM\Column(type="integer")
  21. * @ORM\GeneratedValue(strategy="AUTO")
  22. */
  23. private $id;
  24. /**
  25. * @ORM\Column(type="string", nullable=true, name="id_externo")
  26. */
  27. private $idExterno;
  28. /**
  29. * @ORM\Column(type="datetime", nullable=false, name="created_at", options={"default":"2024-01-01 00:00:00"})
  30. * @Gedmo\Timestampable(on="create")
  31. */
  32. private $createdAt;
  33. /**
  34. * @ORM\Column(type="datetime", nullable=false, name="updated_at", options={"default":"2024-01-01 00:00:00"})
  35. * @Gedmo\Timestampable(on="update")
  36. */
  37. private $updatedAt;
  38. /**
  39. * @ORM\Column(type="datetime", nullable=true, name="deleted_at")
  40. */
  41. private $deletedAt;
  42. /**
  43. * @ORM\Column(type="boolean", nullable=true)
  44. */
  45. private $certificar;
  46. /**
  47. * @ORM\Column(type="boolean", nullable=true)
  48. */
  49. private $certificado;
  50. /**
  51. * @ORM\Column(type="string", nullable=true)
  52. */
  53. private $estadoFinalizacion;
  54. /**
  55. * @ORM\OneToOne(targetEntity=\App\Entity\ParticipantesGrupo::class, mappedBy="participanteGrupoDetalle")
  56. */
  57. private $participantesGrupos;
  58. /**
  59. * @ORM\ManyToOne(targetEntity=\App\Entity\Participante::class, inversedBy="participanteGrupoDetalle")
  60. * @ORM\JoinColumn(name="participante_id", referencedColumnName="id")
  61. */
  62. private $participante;
  63. public function getId(): ?int
  64. {
  65. return $this->id;
  66. }
  67. public function getIdExterno(): ?string
  68. {
  69. return $this->idExterno;
  70. }
  71. public function setIdExterno(?string $idExterno): static
  72. {
  73. $this->idExterno = $idExterno;
  74. return $this;
  75. }
  76. public function getCreatedAt(): ?\DateTimeInterface
  77. {
  78. return $this->createdAt;
  79. }
  80. public function setCreatedAt(\DateTimeInterface $createdAt): static
  81. {
  82. $this->createdAt = $createdAt;
  83. return $this;
  84. }
  85. public function getUpdatedAt(): ?\DateTimeInterface
  86. {
  87. return $this->updatedAt;
  88. }
  89. public function setUpdatedAt(\DateTimeInterface $updatedAt): static
  90. {
  91. $this->updatedAt = $updatedAt;
  92. return $this;
  93. }
  94. public function getDeletedAt(): ?\DateTimeInterface
  95. {
  96. return $this->deletedAt;
  97. }
  98. public function setDeletedAt(?\DateTimeInterface $deletedAt): static
  99. {
  100. $this->deletedAt = $deletedAt;
  101. return $this;
  102. }
  103. public function getParticipantesGrupos(): ?ParticipantesGrupo
  104. {
  105. return $this->participantesGrupos;
  106. }
  107. public function setParticipantesGrupos(?ParticipantesGrupo $participantesGrupos): static
  108. {
  109. // unset the owning side of the relation if necessary
  110. if ($participantesGrupos === null && $this->participantesGrupos !== null) {
  111. $this->participantesGrupos->setParticipanteGrupoDetalle(null);
  112. }
  113. // set the owning side of the relation if necessary
  114. if ($participantesGrupos !== null && $participantesGrupos->getParticipanteGrupoDetalle() !== $this) {
  115. $participantesGrupos->setParticipanteGrupoDetalle($this);
  116. }
  117. $this->participantesGrupos = $participantesGrupos;
  118. return $this;
  119. }
  120. public function getParticipante(): ?Participante
  121. {
  122. return $this->participante;
  123. }
  124. public function setParticipante(?Participante $participante): static
  125. {
  126. $this->participante = $participante;
  127. return $this;
  128. }
  129. public function isCertificar(): ?bool
  130. {
  131. return $this->certificar;
  132. }
  133. public function setCertificar(?bool $certificar): static
  134. {
  135. $this->certificar = $certificar;
  136. return $this;
  137. }
  138. public function isCertificado(): ?bool
  139. {
  140. return $this->certificado;
  141. }
  142. public function setCertificado(?bool $certificado): static
  143. {
  144. $this->certificado = $certificado;
  145. return $this;
  146. }
  147. public function getEstadoFinalizacion(): ?string
  148. {
  149. return $this->estadoFinalizacion;
  150. }
  151. public function setEstadoFinalizacion(?string $estadoFinalizacion): static
  152. {
  153. $this->estadoFinalizacion = $estadoFinalizacion;
  154. return $this;
  155. }
  156. }