<?phpnamespace App\Entity;use App\Repository\AbsenceDisciplineConcileConfigRepository;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: AbsenceDisciplineConcileConfigRepository::class)]class AbsenceDisciplineConcileConfig{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column] private ?int $start = null; /** * Une config par (school, year) — pas d'unicité globale par école, * une école a une config différente chaque année. */ #[ORM\ManyToOne] #[ORM\JoinColumn(nullable: false)] private ?School $school = null; #[ORM\ManyToOne(inversedBy: 'absenceDisciplineConcileConfigs')] #[ORM\JoinColumn(nullable: false)] private ?SchoolYear $year = null; #[ORM\ManyToOne(inversedBy: 'absenceDisciplineConcileConfigs')] #[ORM\JoinColumn(nullable: false)] private ?User $author = null; #[ORM\ManyToOne(inversedBy: 'absenceDisciplineConcileConfigs')] private ?User $editor = null; public function getId(): ?int { return $this->id; } public function getStart(): ?int { return $this->start; } public function setStart(int $start): static { $this->start = $start; return $this; } public function getSchool(): ?School { return $this->school; } public function setSchool(School $school): static { $this->school = $school; return $this; } public function getYear(): ?SchoolYear { return $this->year; } public function setYear(?SchoolYear $year): static { $this->year = $year; return $this; } public function getAuthor(): ?User { return $this->author; } public function setAuthor(?User $author): static { $this->author = $author; return $this; } public function getEditor(): ?User { return $this->editor; } public function setEditor(?User $editor): static { $this->editor = $editor; return $this; }}