src/Entity/CentroFormacionAcogeGrupo.php line 11

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