src/Entity/AbsenceDisciplineConcileConfig.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AbsenceDisciplineConcileConfigRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassAbsenceDisciplineConcileConfigRepository::class)]
  6. class AbsenceDisciplineConcileConfig
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column]
  13.     private ?int $start null;
  14.     /**
  15.      * Une config par (school, year) — pas d'unicité globale par école,
  16.      * une école a une config différente chaque année.
  17.      */
  18.     #[ORM\ManyToOne]
  19.     #[ORM\JoinColumn(nullablefalse)]
  20.     private ?School $school null;
  21.     #[ORM\ManyToOne(inversedBy'absenceDisciplineConcileConfigs')]
  22.     #[ORM\JoinColumn(nullablefalse)]
  23.     private ?SchoolYear $year null;
  24.     #[ORM\ManyToOne(inversedBy'absenceDisciplineConcileConfigs')]
  25.     #[ORM\JoinColumn(nullablefalse)]
  26.     private ?User $author null;
  27.     #[ORM\ManyToOne(inversedBy'absenceDisciplineConcileConfigs')]
  28.     private ?User $editor null;
  29.     public function getId(): ?int
  30.     {
  31.         return $this->id;
  32.     }
  33.     public function getStart(): ?int
  34.     {
  35.         return $this->start;
  36.     }
  37.     public function setStart(int $start): static
  38.     {
  39.         $this->start $start;
  40.         return $this;
  41.     }
  42.     public function getSchool(): ?School
  43.     {
  44.         return $this->school;
  45.     }
  46.     public function setSchool(School $school): static
  47.     {
  48.         $this->school $school;
  49.         return $this;
  50.     }
  51.     public function getYear(): ?SchoolYear
  52.     {
  53.         return $this->year;
  54.     }
  55.     public function setYear(?SchoolYear $year): static
  56.     {
  57.         $this->year $year;
  58.         return $this;
  59.     }
  60.     public function getAuthor(): ?User
  61.     {
  62.         return $this->author;
  63.     }
  64.     public function setAuthor(?User $author): static
  65.     {
  66.         $this->author $author;
  67.         return $this;
  68.     }
  69.     public function getEditor(): ?User
  70.     {
  71.         return $this->editor;
  72.     }
  73.     public function setEditor(?User $editor): static
  74.     {
  75.         $this->editor $editor;
  76.         return $this;
  77.     }
  78. }