<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="imparte")
*/
class Imparte extends \App\Entity\BaseEntity
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $idExterno;
/**
* @ORM\ManyToOne(targetEntity=\App\Entity\Formador::class, inversedBy="impartes")
* @ORM\JoinColumn(name="formador_id", referencedColumnName="id")
*/
private $formador;
/**
* @ORM\ManyToOne(targetEntity=\App\Entity\Grupo::class, inversedBy="impartes")
* @ORM\JoinColumn(name="grupo_id", referencedColumnName="id")
*/
private $grupo;
public function getId(): ?int
{
return $this->id;
}
public function setId($id)
{
$this->id = $id;
return $this;
}
public function getIdExterno(): ?string
{
return $this->idExterno;
}
public function setIdExterno(?string $idExterno): static
{
$this->idExterno = $idExterno;
return $this;
}
public function getFormador(): ?Formador
{
return $this->formador;
}
public function setFormador(?Formador $formador): static
{
$this->formador = $formador;
return $this;
}
public function getGrupo(): ?Grupo
{
return $this->grupo;
}
public function setGrupo(?Grupo $grupo): static
{
$this->grupo = $grupo;
return $this;
}
}