<?php
namespace App\Entity\Fielpet\View;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
/**
* MascotasView
*
* @ORM\Table(name="mascotas_view", indexes={@ORM\Index(name="IDX_2C08604F896A2938", columns={"datosPersonaId"})})
* @ORM\Entity
*/
class MascotasView
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="SEQUENCE")
* @ORM\SequenceGenerator(sequenceName="Mascotas_id_seq", allocationSize=1, initialValue=1)
*/
private $id;
/**
* @var string|null
*
* @ORM\Column(name="codigo", type="string", length=255, nullable=true)
*/
private $codigo;
/**
* @var string|null
*
* @ORM\Column(name="nombre", type="string", length=255, nullable=true)
*/
private $nombre;
/**
* @var string|null
*
* @ORM\Column(name="raza", type="string", length=255, nullable=true)
*/
private $raza;
/**
* @var string|null
*
* @ORM\Column(name="color", type="string", length=255, nullable=true)
*/
private $color;
/**
* @var string|null
*
* @ORM\Column(name="descripcion", type="string", length=255, nullable=true)
*/
private $descripcion;
/**
* @var bool
*
* @ORM\Column(name="activo", type="boolean", nullable=false)
*/
private bool $activo = true;
/**
* @var string|null
*
* @ORM\Column(name="animal", type="string", length=255, nullable=true)
*/
private $animal;
/**
* @var string|null
*
* @ORM\Column(name="sexo", type="string", length=255, nullable=true)
*/
private $sexo;
/**
* @var \DateTime|null
*
* @ORM\Column(name="fecha_nacimiento", type="custom_datetimetz", nullable=true)
*/
private $fechaNacimiento;
/**
* @var \DateTime
*
* @ORM\Column(name="created_at", type="custom_datetimetz", nullable=false)
*/
private $createdAt;
/**
* @var \DateTime
*
* @ORM\Column(name="updated_at", type="custom_datetimetz", nullable=false)
*/
private $updatedAt;
/**
* @var \DatosPersonasView
*
* @ORM\ManyToOne(targetEntity="DatosPersonasView")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="datos_persona_id", referencedColumnName="id")
* })
*/
private $datosPersonaId;
/**
* @ORM\OneToMany(targetEntity="SolicitudesView", mappedBy="mascotaId", cascade={"persist"})
**/
private $solicitudes;
public function __construct()
{
$this->solicitudes = new \Doctrine\Common\Collections\ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getCodigo(): ?string
{
return $this->codigo;
}
public function setCodigo(?string $codigo): static
{
$this->codigo = $codigo;
return $this;
}
public function getNombre(): ?string
{
return $this->nombre;
}
public function setNombre(?string $nombre): static
{
$this->nombre = $nombre;
return $this;
}
public function getRaza(): ?string
{
return $this->raza;
}
public function setRaza(?string $raza): static
{
$this->raza = $raza;
return $this;
}
public function getColor(): ?string
{
return $this->color;
}
public function setColor(?string $color): static
{
$this->color = $color;
return $this;
}
public function getDescripcion(): ?string
{
return $this->descripcion;
}
public function setDescripcion(?string $descripcion): static
{
$this->descripcion = $descripcion;
return $this;
}
public function isActivo(): bool
{
return $this->activo;
}
public function setActivo(bool $activo): static
{
$this->activo = $activo;
return $this;
}
public function getAnimal(): ?string
{
return $this->animal;
}
public function setAnimal(?string $animal): static
{
$this->animal = $animal;
return $this;
}
public function getSexo(): ?string
{
return $this->sexo;
}
public function setSexo(?string $sexo): static
{
$this->sexo = $sexo;
return $this;
}
public function getFechaNacimiento(): ?\DateTimeInterface
{
return $this->fechaNacimiento;
}
public function setFechaNacimiento(?\DateTimeInterface $fechaNacimiento): static
{
$this->fechaNacimiento = $fechaNacimiento;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeInterface $createdAt): static
{
$this->createdAt = $createdAt;
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(\DateTimeInterface $updatedAt): static
{
$this->updatedAt = $updatedAt;
return $this;
}
public function getDatosPersonaId(): ?DatospersonasView
{
return $this->datosPersonaId;
}
public function setDatosPersonaId(?DatospersonasView $datosPersonaId): static
{
$this->datosPersonaId = $datosPersonaId;
return $this;
}
public function getSolicitudes(): Collection
{
return $this->solicitudes;
}
public function setSolicitudes(Collection $solicitudes): void
{
$this->solicitudes = $solicitudes;
}
}