src/Entity/PropietarioContenidoHasUsuarioHermes.php line 23

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use DateTimeInterface;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7. * @ORM\Entity
  8. * @ORM\Table(
  9. * name="propietario_contenido_has_usuario_hermes",
  10. * indexes={
  11. * @ORM\Index(name="idx_pc_usuario_hermes", columns={"usuario_hermes_id"}),
  12. * @ORM\Index(name="idx_pc_propietario", columns={"propietario_contenido_id"})
  13. * },
  14. * uniqueConstraints={@ORM\UniqueConstraint(
  15. * name="unique_usuario_propietario",
  16. * columns={"usuario_hermes_id","propietario_contenido_id"}
  17. * )}
  18. * )
  19. */
  20. class PropietarioContenidoHasUsuarioHermes extends \App\Entity\BaseEntity
  21. {
  22. /**
  23. * @ORM\Id
  24. * @ORM\Column(type="integer")
  25. * @ORM\GeneratedValue(strategy="AUTO")
  26. */
  27. private $id;
  28. /**
  29. * @ORM\Column(type="boolean", nullable=true)
  30. */
  31. private $estado;
  32. /**
  33. * @ORM\Column(type="datetime", nullable=true)
  34. */
  35. private $createdAt;
  36. /**
  37. * @ORM\Column(type="datetime", nullable=true)
  38. */
  39. private $updatedAt;
  40. /**
  41. * @ORM\Column(type="datetime", nullable=true)
  42. */
  43. private $validatedAt;
  44. /**
  45. * @ORM\ManyToOne(targetEntity=\App\Entity\UsuarioHermes::class, inversedBy="propietarioContenidoHasUsuarioHermes")
  46. * @ORM\JoinColumn(name="usuario_hermes_id", referencedColumnName="id", nullable=false)
  47. */
  48. private $usuarioHermes;
  49. /**
  50. * @ORM\ManyToOne(
  51. * targetEntity=\App\Entity\PropietarioContenido::class,
  52. * inversedBy="propietarioContenidoHasUsuarioHermes",
  53. * cascade={"persist","remove"}
  54. * )
  55. * @ORM\JoinColumn(name="propietario_contenido_id", referencedColumnName="id", nullable=false)
  56. */
  57. private $propietarioContenido;
  58. public function getId(): ?int
  59. {
  60. return $this->id;
  61. }
  62. public function setId($id)
  63. {
  64. $this->id = $id;
  65. return $this;
  66. }
  67. public function isEstado(): ?bool
  68. {
  69. return $this->estado;
  70. }
  71. public function setEstado(?bool $estado): static
  72. {
  73. $this->estado = $estado;
  74. return $this;
  75. }
  76. public function getCreatedAt(): ?DateTimeInterface
  77. {
  78. return $this->createdAt;
  79. }
  80. public function setCreatedAt(?DateTimeInterface $createdAt): static
  81. {
  82. $this->createdAt = $createdAt;
  83. return $this;
  84. }
  85. public function getUpdatedAt(): ?DateTimeInterface
  86. {
  87. return $this->updatedAt;
  88. }
  89. public function setUpdatedAt(?DateTimeInterface $updatedAt): static
  90. {
  91. $this->updatedAt = $updatedAt;
  92. return $this;
  93. }
  94. public function getUsuarioHermes(): ?UsuarioHermes
  95. {
  96. return $this->usuarioHermes;
  97. }
  98. public function setUsuarioHermes(?UsuarioHermes $usuarioHermes): static
  99. {
  100. $this->usuarioHermes = $usuarioHermes;
  101. return $this;
  102. }
  103. public function getPropietarioContenido(): ?PropietarioContenido
  104. {
  105. return $this->propietarioContenido;
  106. }
  107. public function setPropietarioContenido(?PropietarioContenido $propietarioContenido): static
  108. {
  109. $this->propietarioContenido = $propietarioContenido;
  110. return $this;
  111. }
  112. public function getValidatedAt()
  113. {
  114. return $this->validatedAt;
  115. }
  116. public function setValidatedAt($validatedAt)
  117. {
  118. $this->validatedAt = $validatedAt;
  119. return $this;
  120. }
  121. }