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.     #[ORM\OneToOne(cascade: ['persist''remove'])]
  15.     #[ORM\JoinColumn(nullablefalse)]
  16.     private ?School $school null;
  17.     #[ORM\ManyToOne(inversedBy'absenceDisciplineConcileConfigs')]
  18.     #[ORM\JoinColumn(nullablefalse)]
  19.     private ?SchoolYear $year null;
  20.     #[ORM\ManyToOne(inversedBy'absenceDisciplineConcileConfigs')]
  21.     #[ORM\JoinColumn(nullablefalse)]
  22.     private ?User $author null;
  23.     #[ORM\ManyToOne(inversedBy'absenceDisciplineConcileConfigs')]
  24.     private ?User $editor null;
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getStart(): ?int
  30.     {
  31.         return $this->start;
  32.     }
  33.     public function setStart(int $start): static
  34.     {
  35.         $this->start $start;
  36.         return $this;
  37.     }
  38.     public function getSchool(): ?School
  39.     {
  40.         return $this->school;
  41.     }
  42.     public function setSchool(School $school): static
  43.     {
  44.         $this->school $school;
  45.         return $this;
  46.     }
  47.     public function getYear(): ?SchoolYear
  48.     {
  49.         return $this->year;
  50.     }
  51.     public function setYear(?SchoolYear $year): static
  52.     {
  53.         $this->year $year;
  54.         return $this;
  55.     }
  56.     public function getAuthor(): ?User
  57.     {
  58.         return $this->author;
  59.     }
  60.     public function setAuthor(?User $author): static
  61.     {
  62.         $this->author $author;
  63.         return $this;
  64.     }
  65.     public function getEditor(): ?User
  66.     {
  67.         return $this->editor;
  68.     }
  69.     public function setEditor(?User $editor): static
  70.     {
  71.         $this->editor $editor;
  72.         return $this;
  73.     }
  74. }