src/Entity/Fielpet/View/DatosPersonasView.php line 16

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. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. /**
  8. * DatosPersonasView
  9. *
  10. * @ORM\Table(name="datos_personas_view")
  11. * @ORM\Entity
  12. */
  13. class DatosPersonasView
  14. {
  15. /**
  16. * @var int
  17. *
  18. * @ORM\Column(name="id", type="integer", nullable=false)
  19. * @ORM\Id
  20. * @ORM\GeneratedValue(strategy="SEQUENCE")
  21. * @ORM\SequenceGenerator(sequenceName="DatosPersonas_id_seq", allocationSize=1, initialValue=1)
  22. */
  23. private $id;
  24. /**
  25. * @var string|null
  26. *
  27. * @ORM\Column(name="dni", type="string", length=255, nullable=true)
  28. */
  29. private $dni;
  30. /**
  31. * @var string|null
  32. *
  33. * @ORM\Column(name="nombre", type="string", length=255, nullable=true)
  34. */
  35. private $nombre;
  36. /**
  37. * @var string|null
  38. *
  39. * @ORM\Column(name="apellido", type="string", length=255, nullable=true)
  40. */
  41. private $apellido;
  42. /**
  43. * @var \DateTime|null
  44. *
  45. * @ORM\Column(name="fecha_nacimiento", type="custom_datetimetz", nullable=true)
  46. */
  47. private $fechaNacimiento;
  48. /**
  49. * @var string|null
  50. *
  51. * @ORM\Column(name="genero", type="string", length=255, nullable=true)
  52. */
  53. private $genero;
  54. /**
  55. * @var string|null
  56. *
  57. * @ORM\Column(name="tel_fijo", type="string", length=255, nullable=true)
  58. */
  59. private $telFijo;
  60. /**
  61. * @var string|null
  62. *
  63. * @ORM\Column(name="tel_celular", type="string", length=255, nullable=true)
  64. */
  65. private $telCelular;
  66. /**
  67. * @var \DateTime
  68. *
  69. * @ORM\Column(name="created_at", type="custom_datetimetz", nullable=false)
  70. */
  71. private $createdAt;
  72. /**
  73. * @var \DateTime
  74. *
  75. * @ORM\Column(name="updated_at", type="custom_datetimetz", nullable=false)
  76. */
  77. private $updatedAt;
  78. /**
  79. * @ORM\OneToMany(targetEntity="UsuariosView", mappedBy="vetformId", cascade={"persist"})
  80. **/
  81. private $usuarios;
  82. /**
  83. * @ORM\OneToMany(targetEntity="DatosDomiciliosView", mappedBy="datosPersonaId")
  84. **/
  85. private $domicilios;
  86. public function __construct()
  87. {
  88. $this->usuarios = new ArrayCollection();
  89. $this->domicilios = new ArrayCollection();
  90. }
  91. public function getId(): ?int
  92. {
  93. return $this->id;
  94. }
  95. public function getDni(): ?string
  96. {
  97. return $this->dni;
  98. }
  99. public function setDni(?string $dni): static
  100. {
  101. $this->dni = $dni;
  102. return $this;
  103. }
  104. public function getNombre(): ?string
  105. {
  106. return $this->nombre;
  107. }
  108. public function setNombre(?string $nombre): static
  109. {
  110. $this->nombre = $nombre;
  111. return $this;
  112. }
  113. public function getApellido(): ?string
  114. {
  115. return $this->apellido;
  116. }
  117. public function setApellido(?string $apellido): static
  118. {
  119. $this->apellido = $apellido;
  120. return $this;
  121. }
  122. public function getFechaNacimiento(): ?\DateTimeInterface
  123. {
  124. return $this->fechaNacimiento;
  125. }
  126. public function setFechaNacimiento(?\DateTimeInterface $fechaNacimiento): static
  127. {
  128. $this->fechaNacimiento = $fechaNacimiento;
  129. return $this;
  130. }
  131. public function getGenero(): ?string
  132. {
  133. return $this->genero;
  134. }
  135. public function setGenero(?string $genero): static
  136. {
  137. $this->genero = $genero;
  138. return $this;
  139. }
  140. public function getTelFijo(): ?string
  141. {
  142. return $this->telFijo;
  143. }
  144. public function setTelFijo(?string $telFijo): static
  145. {
  146. $this->telFijo = $telFijo;
  147. return $this;
  148. }
  149. public function getTelCelular(): ?string
  150. {
  151. return $this->telCelular;
  152. }
  153. public function setTelCelular(?string $telCelular): static
  154. {
  155. $this->telCelular = $telCelular;
  156. return $this;
  157. }
  158. public function getCreatedAt(): ?\DateTimeInterface
  159. {
  160. return $this->createdAt;
  161. }
  162. public function setCreatedAt(\DateTimeInterface $createdAt): static
  163. {
  164. $this->createdAt = $createdAt;
  165. return $this;
  166. }
  167. public function getUpdatedAt(): ?\DateTimeInterface
  168. {
  169. return $this->updatedAt;
  170. }
  171. public function setUpdatedAt(\DateTimeInterface $updatedAt): static
  172. {
  173. $this->updatedAt = $updatedAt;
  174. return $this;
  175. }
  176. public function getUsuarios(): Collection
  177. {
  178. return $this->usuarios;
  179. }
  180. public function setUsuarios(Collection $usuarios): void
  181. {
  182. $this->usuarios = $usuarios;
  183. }
  184. /**
  185. * @return ArrayCollection
  186. */
  187. public function getDomicilios(): Collection
  188. {
  189. return $this->domicilios;
  190. }
  191. /**
  192. * @param ArrayCollection $domicilios
  193. */
  194. public function setDomicilios(Collection $domicilios): void
  195. {
  196. $this->domicilios = $domicilios;
  197. }
  198. }