src/Entity/Fielpet/View/VetformMedicamentosView.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. * VetformMedicamentosView
  7. *
  8. * @ORM\Table(name="vetform_medicamentos_view", indexes={@ORM\Index(name="IDX_B6628D8E80EE288D", columns={"vetformId"}), @ORM\Index(name="IDX_B6628D8EF187BC63", columns={"medicamentosId"})})
  9. * @ORM\Entity
  10. */
  11. class VetformMedicamentosView
  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="VetFormMedicamentos_id_seq", allocationSize=1, initialValue=1)
  20. */
  21. private $id;
  22. /**
  23. * @var \DateTime
  24. *
  25. * @ORM\Column(name="created_at", type="custom_datetimetz", nullable=false)
  26. */
  27. private $createdAt;
  28. /**
  29. * @var \DateTime
  30. *
  31. * @ORM\Column(name="updated_at", type="custom_datetimetz", nullable=false)
  32. */
  33. private $updatedAt;
  34. /**
  35. * @var VetFormView
  36. *
  37. * @ORM\ManyToOne(targetEntity="VetFormView")
  38. * @ORM\JoinColumns({
  39. * @ORM\JoinColumn(name="vetform_id", referencedColumnName="id")
  40. * })
  41. */
  42. private $vetformId;
  43. /**
  44. * @var MedicamentosView
  45. *
  46. * @ORM\ManyToOne(targetEntity="MedicamentosView")
  47. * @ORM\JoinColumns({
  48. * @ORM\JoinColumn(name="medicamentos_id", referencedColumnName="id")
  49. * })
  50. */
  51. private $medicamentosId;
  52. /**
  53. * @return int
  54. */
  55. public function getId(): int
  56. {
  57. return $this->id;
  58. }
  59. /**
  60. * @param int $id
  61. */
  62. public function setId(int $id): void
  63. {
  64. $this->id = $id;
  65. }
  66. /**
  67. * @return \DateTime
  68. */
  69. public function getCreatedAt(): \DateTime
  70. {
  71. return $this->createdAt;
  72. }
  73. /**
  74. * @param \DateTime $createdAt
  75. */
  76. public function setCreatedAt(\DateTime $createdAt): void
  77. {
  78. $this->createdAt = $createdAt;
  79. }
  80. /**
  81. * @return \DateTime
  82. */
  83. public function getUpdatedAt(): \DateTime
  84. {
  85. return $this->updatedAt;
  86. }
  87. /**
  88. * @param \DateTime $updatedAt
  89. */
  90. public function setUpdatedAt(\DateTime $updatedAt): void
  91. {
  92. $this->updatedAt = $updatedAt;
  93. }
  94. /**
  95. * @return VetFormView
  96. */
  97. public function getVetformId(): VetFormView
  98. {
  99. return $this->vetformId;
  100. }
  101. /**
  102. * @param VetFormView $vetformId
  103. */
  104. public function setVetformId(VetFormView $vetformId): void
  105. {
  106. $this->vetformId = $vetformId;
  107. }
  108. /**
  109. * @return MedicamentosView
  110. */
  111. public function getMedicamentosId(): MedicamentosView
  112. {
  113. return $this->medicamentosId;
  114. }
  115. /**
  116. * @param MedicamentosView $medicamentosId
  117. */
  118. public function setMedicamentosId(MedicamentosView $medicamentosId): void
  119. {
  120. $this->medicamentosId = $medicamentosId;
  121. }
  122. }