<?phpnamespace App\Core\Entity;use App\Core\Entity\Curso;use App\Core\Entity\Maestro;use App\Core\Entity\Agenda;use App\Core\Entity\Institucion\Seccion;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass="App\Core\Repository\MaestroCursoRepository") */class MaestroCurso{ /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity="App\Core\Entity\Maestro", inversedBy="maestroCursos") * @ORM\JoinColumn(nullable=false) */ private $maestro; /** * @ORM\ManyToOne(targetEntity="App\Core\Entity\Curso", inversedBy="maestrosCurso") * @ORM\JoinColumn(nullable=false) */ private $curso; /** * @ORM\OneToOne(targetEntity="App\Core\Entity\Agenda", cascade={"persist", "remove"}) * @ORM\JoinColumn(nullable=false) */ private $agenda; /** * @ORM\Column(type="boolean", nullable=true) */ private $principal; /** * @ORM\ManyToOne(targetEntity="App\Core\Entity\Institucion\Seccion", inversedBy="maestroCursos") * @ORM\JoinColumn(nullable=true) */ private $seccion; public function getId(): ?int { return $this->id; } public function getMaestro(): ?Maestro { return $this->maestro; } public function setMaestro(?Maestro $maestro): self { $this->maestro = $maestro; return $this; } public function getCurso(): ?Curso { return $this->curso; } public function setCurso(?Curso $curso): self { $this->curso = $curso; return $this; } public function getAgenda(): ?Agenda { return $this->agenda; } public function setAgenda(Agenda $agenda): self { $this->agenda = $agenda; return $this; } public function getPrincipal(): ?bool { return $this->principal; } public function setPrincipal(bool $principal): self { $this->principal = $principal; return $this; } public function getSeccion(): ?Seccion { return $this->seccion; } public function setSeccion(?Seccion $seccion): self { $this->seccion = $seccion; return $this; }}