<?php
namespace App\Entity;
use App\Repository\SportTraineeRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: SportTraineeRepository::class)]
class SportTrainee
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255)]
private $level;
#[ORM\ManyToOne(targetEntity: Trainee::class, inversedBy: 'sports')]
private $trainee;
#[ORM\ManyToOne(targetEntity: Sport::class, inversedBy: 'trainees')]
private $sport;
public function getId(): ?int
{
return $this->id;
}
public function getLevel()
{
return $this->level;
}
public function setLevel($level)
{
$this->level = $level;
return $this;
}
public function getTrainee(): ?Trainee
{
return $this->trainee;
}
public function setTrainee(?Trainee $trainee): self
{
$this->trainee = $trainee;
return $this;
}
public function getSport(): ?Sport
{
return $this->sport;
}
public function setSport(?Sport $sport): self
{
$this->sport = $sport;
return $this;
}
}