src/Entity/Imparte.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Entity
  6. * @ORM\Table(name="imparte")
  7. */
  8. class Imparte extends \App\Entity\BaseEntity
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\Column(type="integer")
  13. * @ORM\GeneratedValue(strategy="AUTO")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\Column(type="string", nullable=true)
  18. */
  19. private $idExterno;
  20. /**
  21. * @ORM\ManyToOne(targetEntity=\App\Entity\Formador::class, inversedBy="impartes")
  22. * @ORM\JoinColumn(name="formador_id", referencedColumnName="id")
  23. */
  24. private $formador;
  25. /**
  26. * @ORM\ManyToOne(targetEntity=\App\Entity\Grupo::class, inversedBy="impartes")
  27. * @ORM\JoinColumn(name="grupo_id", referencedColumnName="id")
  28. */
  29. private $grupo;
  30. public function getId(): ?int
  31. {
  32. return $this->id;
  33. }
  34. public function setId($id)
  35. {
  36. $this->id = $id;
  37. return $this;
  38. }
  39. public function getIdExterno(): ?string
  40. {
  41. return $this->idExterno;
  42. }
  43. public function setIdExterno(?string $idExterno): static
  44. {
  45. $this->idExterno = $idExterno;
  46. return $this;
  47. }
  48. public function getFormador(): ?Formador
  49. {
  50. return $this->formador;
  51. }
  52. public function setFormador(?Formador $formador): static
  53. {
  54. $this->formador = $formador;
  55. return $this;
  56. }
  57. public function getGrupo(): ?Grupo
  58. {
  59. return $this->grupo;
  60. }
  61. public function setGrupo(?Grupo $grupo): static
  62. {
  63. $this->grupo = $grupo;
  64. return $this;
  65. }
  66. }