You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

128 lines
2.3 KiB

  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * Documentos
  6. *
  7. * @ORM\Table(name="documentos", indexes={@ORM\Index(name="eventos_id", columns={"eventos_id"})})
  8. * @ORM\Entity
  9. */
  10. class Documentos
  11. {
  12. /**
  13. * @var int
  14. *
  15. * @ORM\Column(name="id", type="integer", nullable=false)
  16. * @ORM\Id
  17. * @ORM\GeneratedValue(strategy="IDENTITY")
  18. */
  19. private $id;
  20. /**
  21. * @var string
  22. *
  23. * @ORM\Column(name="filename", type="text", length=65535, nullable=false)
  24. */
  25. private $filename;
  26. /**
  27. * @var string
  28. *
  29. * @ORM\Column(name="name", type="text", length=65535, nullable=false)
  30. */
  31. private $name;
  32. /**
  33. * @var string
  34. *
  35. * @ORM\Column(name="description", type="text", length=65535, nullable=false)
  36. */
  37. private $description;
  38. /**
  39. * @var \DateTime
  40. *
  41. * @ORM\Column(name="createdAt", type="datetime", nullable=false)
  42. */
  43. private $createdat;
  44. /**
  45. * @var \Eventos
  46. *
  47. * @ORM\ManyToOne(targetEntity="Eventos")
  48. * @ORM\JoinColumns({
  49. * @ORM\JoinColumn(name="eventos_id", referencedColumnName="id")
  50. * })
  51. */
  52. private $eventos;
  53. public function getId(): ?int
  54. {
  55. return $this->id;
  56. }
  57. public function getFilename(): ?string
  58. {
  59. return $this->filename;
  60. }
  61. public function setFilename(string $filename): self
  62. {
  63. $this->filename = $filename;
  64. return $this;
  65. }
  66. public function getName(): ?string
  67. {
  68. return $this->name;
  69. }
  70. public function setName(string $name): self
  71. {
  72. $this->name = $name;
  73. return $this;
  74. }
  75. public function getDescription(): ?string
  76. {
  77. return $this->description;
  78. }
  79. public function setDescription(string $description): self
  80. {
  81. $this->description = $description;
  82. return $this;
  83. }
  84. public function getCreatedat(): ?\DateTimeInterface
  85. {
  86. return $this->createdat;
  87. }
  88. public function setCreatedat(\DateTimeInterface $createdat): self
  89. {
  90. $this->createdat = $createdat;
  91. return $this;
  92. }
  93. public function getEventos(): ?Eventos
  94. {
  95. return $this->eventos;
  96. }
  97. public function setEventos(?Eventos $eventos): self
  98. {
  99. $this->eventos = $eventos;
  100. return $this;
  101. }
  102. }