src/Entity/Fielpet/View/UsuariosView.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Fielpet\View;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * UsuariosView
  7. *
  8. * @ORM\Table(name="usuarios_view", indexes={@ORM\Index(name="IDX_F780E5A4896A2938", columns={"datosPersonaId"})})
  9. * @ORM\Entity
  10. */
  11. class UsuariosView
  12. {
  13. /**
  14. * @var int
  15. *
  16. * @ORM\Column(name="id", type="integer", nullable=false)
  17. * @ORM\Id
  18. * @ORM\GeneratedValue(strategy="SEQUENCE")
  19. * @ORM\SequenceGenerator(sequenceName="Usuarios_id_seq", allocationSize=1, initialValue=1)
  20. */
  21. private $id;
  22. /**
  23. * @var string|null
  24. *
  25. * @ORM\Column(name="username", type="string", length=255, nullable=true)
  26. */
  27. private $username;
  28. /**
  29. * @var string|null
  30. *
  31. * @ORM\Column(name="password", type="string", length=255, nullable=true)
  32. */
  33. private $password;
  34. /**
  35. * @var int|null
  36. *
  37. * @ORM\Column(name="role", type="integer", nullable=true, options={"default"="1"})
  38. */
  39. private $role = 1;
  40. /**
  41. * @var bool|null
  42. *
  43. * @ORM\Column(name="is_active", type="boolean", nullable=true, options={"default"="1"})
  44. */
  45. private $isActive = true;
  46. /**
  47. * @var string|null
  48. *
  49. * @ORM\Column(name="topic", type="string", length=255, nullable=true)
  50. */
  51. private $topic;
  52. /**
  53. * @var bool|null
  54. *
  55. * @ORM\Column(name="is_old_user", type="boolean", nullable=true)
  56. */
  57. private $isOldUser = false;
  58. /**
  59. * @var \DateTime
  60. *
  61. * @ORM\Column(name="created_at", type="custom_datetimetz", nullable=false)
  62. */
  63. private $createdAt;
  64. /**
  65. * @var \DateTime
  66. *
  67. * @ORM\Column(name="updated_at", type="custom_datetimetz", nullable=false)
  68. */
  69. private $updatedat;
  70. /**
  71. * @var DatosPersonasView
  72. *
  73. * @ORM\ManyToOne(targetEntity="DatosPersonasView")
  74. * @ORM\JoinColumns({
  75. * @ORM\JoinColumn(name="datos_persona_id", referencedColumnName="id")
  76. * })
  77. */
  78. private $datosPersonaId;
  79. public function getId(): ?int
  80. {
  81. return $this->id;
  82. }
  83. public function getUsername(): ?string
  84. {
  85. return $this->username;
  86. }
  87. public function setUsername(?string $username): self
  88. {
  89. $this->username = $username;
  90. return $this;
  91. }
  92. public function getPassword(): ?string
  93. {
  94. return $this->password;
  95. }
  96. public function setPassword(?string $password): self
  97. {
  98. $this->password = $password;
  99. return $this;
  100. }
  101. public function getRole(): ?int
  102. {
  103. return $this->role;
  104. }
  105. public function setRole(?int $role): self
  106. {
  107. $this->role = $role;
  108. return $this;
  109. }
  110. public function getIsActive(): ?bool
  111. {
  112. return $this->isActive;
  113. }
  114. public function setIsActive(?bool $isActive): self
  115. {
  116. $this->isActive = $isActive;
  117. return $this;
  118. }
  119. public function getTopic(): ?string
  120. {
  121. return $this->topic;
  122. }
  123. public function setTopic(?string $topic): self
  124. {
  125. $this->topic = $topic;
  126. return $this;
  127. }
  128. public function getIsOldUser(): ?bool
  129. {
  130. return $this->isOldUser;
  131. }
  132. public function setIsOldUser(?bool $isOldUser): self
  133. {
  134. $this->isOldUser = $isOldUser;
  135. return $this;
  136. }
  137. public function getCreatedAt(): \DateTime
  138. {
  139. return $this->createdAt;
  140. }
  141. public function setCreatedAt(\DateTime $createdAt): void
  142. {
  143. $this->createdAt = $createdAt;
  144. }
  145. public function getUpdatedat(): \DateTime
  146. {
  147. return $this->updatedat;
  148. }
  149. public function setUpdatedat(\DateTime $updatedat): void
  150. {
  151. $this->updatedat = $updatedat;
  152. }
  153. public function getDatosPersonaId(): DatosPersonasView
  154. {
  155. return $this->datosPersonaId;
  156. }
  157. public function setDatosPersonaId(DatosPersonasView $datosPersonaId): void
  158. {
  159. $this->datosPersonaId = $datosPersonaId;
  160. }
  161. public function isIsActive(): ?bool
  162. {
  163. return $this->isActive;
  164. }
  165. public function isIsOldUser(): ?bool
  166. {
  167. return $this->isOldUser;
  168. }
  169. }