src/Entity/Fielpet/View/PesajesView.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. * PesajesView
  7. *
  8. * @ORM\Table(name="Pesajes", indexes={@ORM\Index(name="IDX_4FAE53CB9F276F38", columns={"mascotaId"})})
  9. * @ORM\Entity
  10. */
  11. class PesajesView
  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="Pesajes_id_seq", allocationSize=1, initialValue=1)
  20. */
  21. private $id;
  22. /**
  23. * @var float|null
  24. *
  25. * @ORM\Column(name="peso", type="float", precision=10, scale=0, nullable=true)
  26. */
  27. private $peso;
  28. /**
  29. * @var \DateTime|null
  30. *
  31. * @ORM\Column(name="fecha_pesaje", type="custom_datetimetz", nullable=true)
  32. */
  33. private $fechaPesaje;
  34. /**
  35. * @var \DateTime
  36. *
  37. * @ORM\Column(name="createdAt", type="custom_datetimetz", nullable=false)
  38. */
  39. private $createdat;
  40. /**
  41. * @var \DateTime
  42. *
  43. * @ORM\Column(name="updatedAt", type="custom_datetimetz", nullable=false)
  44. */
  45. private $updatedat;
  46. /**
  47. * @var MascotasView
  48. *
  49. * @ORM\ManyToOne(targetEntity="MascotasView")
  50. * @ORM\JoinColumns({
  51. * @ORM\JoinColumn(name="mascotaId", referencedColumnName="id")
  52. * })
  53. */
  54. private $mascotaid;
  55. public function getId(): ?int
  56. {
  57. return $this->id;
  58. }
  59. public function getPeso(): ?float
  60. {
  61. return $this->peso;
  62. }
  63. public function setPeso(?float $peso): self
  64. {
  65. $this->peso = $peso;
  66. return $this;
  67. }
  68. public function getFechaPesaje(): ?\DateTimeInterface
  69. {
  70. return $this->fechaPesaje;
  71. }
  72. public function setFechaPesaje(?\DateTimeInterface $fechaPesaje): self
  73. {
  74. $this->fechaPesaje = $fechaPesaje;
  75. return $this;
  76. }
  77. public function getCreatedat(): ?\DateTimeInterface
  78. {
  79. return $this->createdat;
  80. }
  81. public function setCreatedat(\DateTimeInterface $createdat): self
  82. {
  83. $this->createdat = $createdat;
  84. return $this;
  85. }
  86. public function getUpdatedat(): ?\DateTimeInterface
  87. {
  88. return $this->updatedat;
  89. }
  90. public function setUpdatedat(\DateTimeInterface $updatedat): self
  91. {
  92. $this->updatedat = $updatedat;
  93. return $this;
  94. }
  95. public function getMascotaid(): ?MascotasView
  96. {
  97. return $this->mascotaid;
  98. }
  99. public function setMascotaid(?MascotasView $mascotaid): self
  100. {
  101. $this->mascotaid = $mascotaid;
  102. return $this;
  103. }
  104. }