<?php
namespace App\Entity;
use App\Repository\CourseToGroupRepository;
use Doctrine\ORM\AbstractQuery;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=CourseToGroupRepository::class)
*/
class CourseToGroup
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Course::class, inversedBy="courseToGroup", fetch="EAGER")
*/
private $course;
/**
* @ORM\ManyToOne(targetEntity=CourseGroup::class, inversedBy="courseToGroup", fetch="EAGER")
*/
private $Groups;
public function getId(): ?int
{
return $this->id;
}
public function getCourse(): ?Course
{
return $this->course;
}
public function setCourse(?Course $course): self
{
$this->course = $course;
return $this;
}
public function getGroups(): ?CourseGroup
{
return $this->Groups;
}
public function setGroups(?CourseGroup $Groups): self
{
$this->Groups = $Groups;
return $this;
}
}