<?php
namespace App\Entity\Fielpet\View;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* PesajesView
*
* @ORM\Table(name="Pesajes", indexes={@ORM\Index(name="IDX_4FAE53CB9F276F38", columns={"mascotaId"})})
* @ORM\Entity
*/
class PesajesView
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="SEQUENCE")
* @ORM\SequenceGenerator(sequenceName="Pesajes_id_seq", allocationSize=1, initialValue=1)
*/
private $id;
/**
* @var float|null
*
* @ORM\Column(name="peso", type="float", precision=10, scale=0, nullable=true)
*/
private $peso;
/**
* @var \DateTime|null
*
* @ORM\Column(name="fecha_pesaje", type="custom_datetimetz", nullable=true)
*/
private $fechaPesaje;
/**
* @var \DateTime
*
* @ORM\Column(name="createdAt", type="custom_datetimetz", nullable=false)
*/
private $createdat;
/**
* @var \DateTime
*
* @ORM\Column(name="updatedAt", type="custom_datetimetz", nullable=false)
*/
private $updatedat;
/**
* @var MascotasView
*
* @ORM\ManyToOne(targetEntity="MascotasView")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="mascotaId", referencedColumnName="id")
* })
*/
private $mascotaid;
public function getId(): ?int
{
return $this->id;
}
public function getPeso(): ?float
{
return $this->peso;
}
public function setPeso(?float $peso): self
{
$this->peso = $peso;
return $this;
}
public function getFechaPesaje(): ?\DateTimeInterface
{
return $this->fechaPesaje;
}
public function setFechaPesaje(?\DateTimeInterface $fechaPesaje): self
{
$this->fechaPesaje = $fechaPesaje;
return $this;
}
public function getCreatedat(): ?\DateTimeInterface
{
return $this->createdat;
}
public function setCreatedat(\DateTimeInterface $createdat): self
{
$this->createdat = $createdat;
return $this;
}
public function getUpdatedat(): ?\DateTimeInterface
{
return $this->updatedat;
}
public function setUpdatedat(\DateTimeInterface $updatedat): self
{
$this->updatedat = $updatedat;
return $this;
}
public function getMascotaid(): ?MascotasView
{
return $this->mascotaid;
}
public function setMascotaid(?MascotasView $mascotaid): self
{
$this->mascotaid = $mascotaid;
return $this;
}
}