src/Entity/Fielpet/View/EventoscriaView.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. * EventoscriaView
  7. *
  8. * @ORM\Table(name="EventosCria", indexes={@ORM\Index(name="IDX_EBF39E99FB34125D", columns={"eventoId"})})
  9. * @ORM\Entity
  10. */
  11. class EventoscriaView
  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="EventosCria_id_seq", allocationSize=1, initialValue=1)
  20. */
  21. private $id;
  22. /**
  23. * @var int|null
  24. *
  25. * @ORM\Column(name="machos", type="integer", nullable=true)
  26. */
  27. private $machos = '0';
  28. /**
  29. * @var int|null
  30. *
  31. * @ORM\Column(name="hembras", type="integer", nullable=true)
  32. */
  33. private $hembras = '0';
  34. /**
  35. * @var int|null
  36. *
  37. * @ORM\Column(name="fallecidos", type="integer", nullable=true)
  38. */
  39. private $fallecidos = '0';
  40. /**
  41. * @var \DateTime
  42. *
  43. * @ORM\Column(name="createdAt", type="custom_datetimetz", nullable=false)
  44. */
  45. private $createdat;
  46. /**
  47. * @var \DateTime
  48. *
  49. * @ORM\Column(name="updatedAt", type="custom_datetimetz", nullable=false)
  50. */
  51. private $updatedat;
  52. /**
  53. * @var EventosView
  54. *
  55. * @ORM\ManyToOne(targetEntity="EventosView")
  56. * @ORM\JoinColumns({
  57. * @ORM\JoinColumn(name="eventoId", referencedColumnName="id")
  58. * })
  59. */
  60. private $eventoid;
  61. public function getId(): ?int
  62. {
  63. return $this->id;
  64. }
  65. public function getMachos(): ?int
  66. {
  67. return $this->machos;
  68. }
  69. public function setMachos(?int $machos): self
  70. {
  71. $this->machos = $machos;
  72. return $this;
  73. }
  74. public function getHembras(): ?int
  75. {
  76. return $this->hembras;
  77. }
  78. public function setHembras(?int $hembras): self
  79. {
  80. $this->hembras = $hembras;
  81. return $this;
  82. }
  83. public function getFallecidos(): ?int
  84. {
  85. return $this->fallecidos;
  86. }
  87. public function setFallecidos(?int $fallecidos): self
  88. {
  89. $this->fallecidos = $fallecidos;
  90. return $this;
  91. }
  92. public function getCreatedat(): ?\DateTimeInterface
  93. {
  94. return $this->createdat;
  95. }
  96. public function setCreatedat(\DateTimeInterface $createdat): self
  97. {
  98. $this->createdat = $createdat;
  99. return $this;
  100. }
  101. public function getUpdatedat(): ?\DateTimeInterface
  102. {
  103. return $this->updatedat;
  104. }
  105. public function setUpdatedat(\DateTimeInterface $updatedat): self
  106. {
  107. $this->updatedat = $updatedat;
  108. return $this;
  109. }
  110. public function getEventoid(): ?EventosView
  111. {
  112. return $this->eventoid;
  113. }
  114. public function setEventoid(?EventosView $eventoid): self
  115. {
  116. $this->eventoid = $eventoid;
  117. return $this;
  118. }
  119. }