<?php
namespace App\Entity;
use App\Repository\TrainingRankRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="training_rank")
* @ORM\Entity(repositoryClass=TrainingRankRepository::class)
*/
class TrainingRank
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Training::class, inversedBy="trainingRanks")
* @ORM\JoinColumn(nullable=false)
*/
private $training;
/**
* @ORM\ManyToOne(targetEntity=Rank::class, inversedBy="trainingRanks")
* @ORM\JoinColumn(nullable=false)
*/
private $rank;
public function getId(): ?int
{
return $this->id;
}
public function getTraining(): ?Training
{
return $this->training;
}
public function setTraining(?Training $training): self
{
$this->training = $training;
return $this;
}
public function getRank(): ?Rank
{
return $this->rank;
}
public function setRank(?Rank $rank): self
{
$this->rank = $rank;
return $this;
}
}