src/Entity/GrupoSesiones.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  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. use Gedmo\Mapping\Annotation as Gedmo;
  8. /**
  9. * @ORM\Entity
  10. * @ORM\Table(name="grupo_sesiones")
  11. */
  12. class GrupoSesiones extends \App\Entity\BaseEntity
  13. {
  14. /**
  15. * @ORM\Id
  16. * @ORM\Column(type="integer")
  17. * @ORM\GeneratedValue(strategy="AUTO")
  18. */
  19. private $id;
  20. /**
  21. * @ORM\Column(type="string", nullable=true, name="id_externo")
  22. */
  23. private $idExterno;
  24. /**
  25. * @ORM\Column(type="datetime", nullable=false, name="created_at", options={"default":"2024-01-01 00:00:00"})
  26. * @Gedmo\Timestampable(on="create")
  27. */
  28. private $createdAt;
  29. /**
  30. * @ORM\Column(type="datetime", nullable=false, name="updated_at", options={"default":"2024-01-01 00:00:00"})
  31. * @Gedmo\Timestampable(on="update")
  32. */
  33. private $updatedAt;
  34. /**
  35. * @ORM\Column(type="datetime", nullable=true, name="deleted_at")
  36. */
  37. private $deletedAt;
  38. /**
  39. * @ORM\ManyToOne(targetEntity=\App\Entity\Grupo::class, inversedBy="grupoSesiones")
  40. * @ORM\JoinColumn(name="grupo_id", referencedColumnName="id")
  41. */
  42. private $grupo;
  43. /**
  44. * @ORM\ManyToOne(targetEntity=\App\Entity\Modalidad::class, inversedBy="grupoSesiones")
  45. * @ORM\JoinColumn(name="modalidad_id", referencedColumnName="id")
  46. */
  47. private $modalidad;
  48. public function getId(): ?int
  49. {
  50. return $this->id;
  51. }
  52. public function setId($id)
  53. {
  54. $this->id = $id;
  55. return $this;
  56. }
  57. public function getIdExterno(): ?string
  58. {
  59. return $this->idExterno;
  60. }
  61. public function setIdExterno(?string $idExterno): static
  62. {
  63. $this->idExterno = $idExterno;
  64. return $this;
  65. }
  66. public function getCreatedAt(): ?\DateTimeInterface
  67. {
  68. return $this->createdAt;
  69. }
  70. public function setCreatedAt(\DateTimeInterface $createdAt): static
  71. {
  72. $this->createdAt = $createdAt;
  73. return $this;
  74. }
  75. public function getUpdatedAt(): ?\DateTimeInterface
  76. {
  77. return $this->updatedAt;
  78. }
  79. public function setUpdatedAt(\DateTimeInterface $updatedAt): static
  80. {
  81. $this->updatedAt = $updatedAt;
  82. return $this;
  83. }
  84. public function getDeletedAt(): ?\DateTimeInterface
  85. {
  86. return $this->deletedAt;
  87. }
  88. public function setDeletedAt(?\DateTimeInterface $deletedAt): static
  89. {
  90. $this->deletedAt = $deletedAt;
  91. return $this;
  92. }
  93. public function getGrupo(): ?Grupo
  94. {
  95. return $this->grupo;
  96. }
  97. public function setGrupo(?Grupo $grupo): static
  98. {
  99. $this->grupo = $grupo;
  100. return $this;
  101. }
  102. public function getModalidad(): ?Modalidad
  103. {
  104. return $this->modalidad;
  105. }
  106. public function setModalidad(?Modalidad $modalidad): static
  107. {
  108. $this->modalidad = $modalidad;
  109. return $this;
  110. }
  111. }