src/Entity/Foro.php line 13

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(name="foro")
  9. */
  10. class Foro
  11. {
  12. /**
  13. * @ORM\Id
  14. * @ORM\Column(type="integer")
  15. * @ORM\GeneratedValue(strategy="AUTO")
  16. */
  17. private $id;
  18. /**
  19. * @ORM\Column(type="datetime", nullable=true, name="deleted_at")
  20. */
  21. private $deletedAt;
  22. /**
  23. * @ORM\Column(type="datetime", nullable=false, name="updated_at", options={"default":"2024-01-01 00:00:00"})
  24. * @Gedmo\Timestampable(on="update")
  25. */
  26. private $updatedAt;
  27. /**
  28. * @ORM\Column(type="datetime", nullable=false, name="created_at", options={"default":"2024-01-01 00:00:00"})
  29. * @Gedmo\Timestampable(on="create")
  30. */
  31. private $createdAt;
  32. public function getId(): ?int
  33. {
  34. return $this->id;
  35. }
  36. public function setId($id)
  37. {
  38. $this->id = $id;
  39. return $this;
  40. }
  41. public function getDeletedAt(): ?\DateTimeInterface
  42. {
  43. return $this->deletedAt;
  44. }
  45. public function setDeletedAt(?\DateTimeInterface $deletedAt): static
  46. {
  47. $this->deletedAt = $deletedAt;
  48. return $this;
  49. }
  50. public function getUpdatedAt(): ?\DateTimeInterface
  51. {
  52. return $this->updatedAt;
  53. }
  54. public function setUpdatedAt(\DateTimeInterface $updatedAt): static
  55. {
  56. $this->updatedAt = $updatedAt;
  57. return $this;
  58. }
  59. public function getCreatedAt(): ?\DateTimeInterface
  60. {
  61. return $this->createdAt;
  62. }
  63. public function setCreatedAt(\DateTimeInterface $createdAt): static
  64. {
  65. $this->createdAt = $createdAt;
  66. return $this;
  67. }
  68. }