src/Entity/Trazabilidad.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. use Symfony\Component\Uid\Uuid;
  6. /**
  7. * @ORM\Entity(repositoryClass="App\Repository\TrazabilidadRepository", readOnly=true)
  8. * @ORM\Table(name="trazabilidad", schema="perseo")
  9. * @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false, hardDelete=true)
  10. */
  11. class Trazabilidad
  12. {
  13. /**
  14. * @ORM\Id
  15. * @ORM\Column(type="uuid", unique=true)
  16. * @ORM\GeneratedValue(strategy="CUSTOM")
  17. * @ORM\CustomIdGenerator(class="doctrine.uuid_generator")
  18. */
  19. protected $id;
  20. /**
  21. * @ORM\Column(type="datetime", nullable=true)
  22. */
  23. protected $fecha;
  24. /**
  25. * @ORM\Column(type="string", nullable=true)
  26. */
  27. protected $descripcion;
  28. /**
  29. * @ORM\Column(type="datetime", nullable=true, name="deleted_at")
  30. */
  31. protected $deletedAt;
  32. /**
  33. * @ORM\Column(type="datetime", nullable=false, name="updated_at", options={"default":"2022-01-01 00:00:00"})
  34. * @Gedmo\Timestampable(on="update")
  35. */
  36. protected $updatedAt;
  37. /**
  38. * @ORM\Column(type="datetime", nullable=false, name="created_at", options={"default":"2022-01-01 00:00:00"})
  39. * @Gedmo\Timestampable(on="create")
  40. */
  41. protected $createdAt;
  42. /**
  43. * @ORM\ManyToOne(targetEntity="App\Entity\Reloj", inversedBy="trazas")
  44. * @ORM\JoinColumn(name="reloj_id", referencedColumnName="id")
  45. */
  46. protected $reloj;
  47. public function getId(): ?Uuid
  48. {
  49. return $this->id;
  50. }
  51. public function getFecha(): ?\DateTimeInterface
  52. {
  53. return $this->fecha;
  54. }
  55. public function setFecha(?\DateTimeInterface $fecha): self
  56. {
  57. $this->fecha = $fecha;
  58. return $this;
  59. }
  60. public function getDescripcion(): ?string
  61. {
  62. return $this->descripcion;
  63. }
  64. public function setDescripcion(?string $descripcion): self
  65. {
  66. $this->descripcion = $descripcion;
  67. return $this;
  68. }
  69. public function getDeletedAt(): ?\DateTimeInterface
  70. {
  71. return $this->deletedAt;
  72. }
  73. public function setDeletedAt(?\DateTimeInterface $deletedAt): self
  74. {
  75. $this->deletedAt = $deletedAt;
  76. return $this;
  77. }
  78. public function getUpdatedAt(): ?\DateTimeInterface
  79. {
  80. return $this->updatedAt;
  81. }
  82. public function setUpdatedAt(\DateTimeInterface $updatedAt): self
  83. {
  84. $this->updatedAt = $updatedAt;
  85. return $this;
  86. }
  87. public function getCreatedAt(): ?\DateTimeInterface
  88. {
  89. return $this->createdAt;
  90. }
  91. public function setCreatedAt(\DateTimeInterface $createdAt): self
  92. {
  93. $this->createdAt = $createdAt;
  94. return $this;
  95. }
  96. public function getReloj(): ?Reloj
  97. {
  98. return $this->reloj;
  99. }
  100. public function setReloj(?Reloj $reloj): self
  101. {
  102. $this->reloj = $reloj;
  103. return $this;
  104. }
  105. }