src/Entity/School.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Traits\Timestampable;
  4. use App\Repository\SchoolRepository;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\ORM\Mapping as ORM;
  8. use JMS\Serializer\Annotation\Groups;
  9. #[ORM\HasLifecycleCallbacks]
  10. #[ORM\Entity(repositoryClassSchoolRepository::class)]
  11. class School
  12. {
  13.     use Timestampable;
  14.     #[ORM\Id]
  15.     #[ORM\GeneratedValue]
  16.     #[ORM\Column]
  17.     #[Groups(['getStudents','getSubject','getAppUsers','getClass'])]
  18.     private ?int $id null;
  19.     #[ORM\Column(length255)]
  20.     #[Groups(['getStudents'])]
  21.     private ?string $name null;
  22.     #[ORM\Column(length255)]
  23.     private ?string $phone null;
  24.     #[ORM\OneToMany(mappedBy'school'targetEntityUser::class)]
  25.     private Collection $users;
  26.     #[ORM\Column(length255nullabletrue)]
  27.     private ?string $email null;
  28.     #[ORM\OneToMany(mappedBy'school'targetEntityUserYear::class)]
  29.     private Collection $userYears;
  30.     #[ORM\OneToMany(mappedBy'school'targetEntityStudent::class)]
  31.     private Collection $students;
  32.     #[ORM\OneToMany(mappedBy'school'targetEntityStudentYear::class)]
  33.     private Collection $studentYears;
  34.     #[ORM\OneToMany(mappedBy'school'targetEntityAbsence::class)]
  35.     private Collection $absences;
  36.     #[ORM\OneToMany(mappedBy'school'targetEntityNote::class)]
  37.     private Collection $notes;
  38.     #[ORM\OneToMany(mappedBy'school'targetEntityDocInfo::class)]
  39.     private Collection $docInfos;
  40.     #[ORM\OneToMany(mappedBy'school'targetEntityEvent::class)]
  41.     private Collection $events;
  42.     #[ORM\OneToMany(mappedBy'school'targetEntityExams::class)]
  43.     private Collection $exams;
  44.     #[ORM\OneToMany(mappedBy'school'targetEntityHomeWork::class)]
  45.     private Collection $homeWorks;
  46.     #[ORM\OneToMany(mappedBy'school'targetEntityLate::class)]
  47.     private Collection $lates;
  48.     #[ORM\OneToMany(mappedBy'school'targetEntityHomeWorkYear::class)]
  49.     private Collection $homeWorkYears;
  50.     #[ORM\OneToMany(mappedBy'school'targetEntityPunish::class)]
  51.     private Collection $punishes;
  52.     #[ORM\OneToMany(mappedBy'school'targetEntityPunishCategory::class)]
  53.     private Collection $punishCategories;
  54.     #[ORM\OneToMany(mappedBy'school'targetEntitySchoolSection::class)]
  55.     private Collection $schoolSections;
  56.     #[ORM\OneToMany(mappedBy'school'targetEntityTheClass::class)]
  57.     private Collection $theClasses;
  58.     #[ORM\OneToMany(mappedBy'school'targetEntitySubject::class)]
  59.     private Collection $subjects;
  60.     #[ORM\OneToMany(mappedBy'school'targetEntitySubjectGroup::class)]
  61.     private Collection $subjectGroups;
  62.     #[ORM\OneToMany(mappedBy'school'targetEntityDiscussion::class)]
  63.     private Collection $discussions;
  64.     #[ORM\OneToMany(mappedBy'school'targetEntityDiscussionClass::class)]
  65.     private Collection $discussionClasses;
  66.     #[ORM\OneToMany(mappedBy'school'targetEntityCategoryEvent::class)]
  67.     private Collection $categoryEvents;
  68.     
  69.     #[ORM\OneToMany(mappedBy'school'targetEntityNews::class)]
  70.     private Collection $news;
  71.     #[ORM\OneToMany(mappedBy'school'targetEntityAgenda::class)]
  72.     private Collection $agendas;
  73.     #[ORM\OneToMany(mappedBy'school'targetEntityExamAgenda::class)]
  74.     private Collection $examAgendas;
  75.     #[ORM\OneToMany(mappedBy'School'targetEntitySubSequence::class, orphanRemovaltrue)]
  76.     private Collection $subSequences;
  77.     #[ORM\OneToMany(mappedBy'school'targetEntityQuarter::class, orphanRemovaltrue)]
  78.     private Collection $quarters;
  79.     #[ORM\OneToMany(mappedBy'school'targetEntitySubNote::class, orphanRemovaltrue)]
  80.     private Collection $subNotes;
  81.     #[ORM\OneToMany(mappedBy'school'targetEntityGlobalExam::class, orphanRemovaltrue)]
  82.     private Collection $globalExams;
  83.     #[ORM\OneToMany(mappedBy'school'targetEntityGlobalQuarter::class, orphanRemovaltrue)]
  84.     private Collection $globalQuarters;
  85.     #[ORM\OneToMany(mappedBy'school'targetEntityAppreciation::class, orphanRemovaltrue)]
  86.     private Collection $appreciations;
  87.     #[ORM\OneToMany(mappedBy'school'targetEntityScolarity::class)]
  88.     private Collection $scolarities;
  89.     #[ORM\OneToMany(mappedBy'school'targetEntityScolarityHistory::class)]
  90.     private Collection $scolarityHistories;
  91.     #[ORM\OneToMany(mappedBy'school'targetEntityDisciplineWarning::class, orphanRemovaltrue)]
  92.     private Collection $disciplineWarnings;
  93.     #[ORM\OneToMany(mappedBy'school'targetEntityDisciplineBlame::class, orphanRemovaltrue)]
  94.     private Collection $disciplineBlames;
  95.     #[ORM\OneToMany(mappedBy'school'targetEntityDisciplineExclusion::class)]
  96.     private Collection $disciplineExclusions;
  97.     #[ORM\OneToMany(mappedBy'school'targetEntityParentNote::class)]
  98.     private Collection $parentNotes;
  99.     #[ORM\OneToMany(mappedBy'school'targetEntityJustifyAbsence::class)]
  100.     private Collection $justifyAbsences;
  101.     #[ORM\OneToMany(mappedBy'school'targetEntityAbsenceRetainedConfig::class, orphanRemovaltrue)]
  102.     private Collection $absenceRetainedConfigs;
  103.     #[ORM\OneToMany(mappedBy'school'targetEntityAbsenceWarningConfig::class)]
  104.     private Collection $absenceWarningConfigs;
  105.     #[ORM\OneToMany(mappedBy'school'targetEntityAbsenceExclusionConfig::class)]
  106.     private Collection $absenceExclusionConfigs;
  107.     #[ORM\OneToMany(mappedBy'school'targetEntityAbsenceBlameConfig::class)]
  108.     private Collection $absenceBlameConfigs;
  109.     #[ORM\OneToMany(mappedBy'school'targetEntityDisciplineRetained::class)]
  110.     private Collection $disciplineRetaineds;
  111.     #[ORM\OneToMany(mappedBy'school'targetEntityDefinitiveExclusion::class)]
  112.     private Collection $definitiveExclusions;
  113.     #[ORM\OneToMany(mappedBy'school'targetEntityDisciplineConcile::class)]
  114.     private Collection $disciplineConciles;
  115.     #[ORM\OneToMany(mappedBy'school'targetEntityRetainedDisciplineConcileConfig::class)]
  116.     private Collection $retainedDisciplineConcileConfigs;
  117.     #[ORM\OneToMany(mappedBy'school'targetEntityRetainedBlameConfig::class)]
  118.     private Collection $retainedBlameConfigs;
  119.     #[ORM\OneToMany(mappedBy'school'targetEntityRetainedWarningConfig::class)]
  120.     private Collection $retainedWarningConfigs;
  121.     #[ORM\OneToMany(mappedBy'school'targetEntityRetainedDefinitiveExclusionConfig::class)]
  122.     private Collection $retainedDefinitiveExclusionConfigs;
  123.     #[ORM\OneToMany(mappedBy'school'targetEntityBlameDefinitiveExclusionConfig::class)]
  124.     private Collection $blameDefinitiveExclusionConfigs;
  125.     #[ORM\OneToMany(mappedBy'school'targetEntityBlameExclusionConfig::class)]
  126.     private Collection $blameExclusionConfigs;
  127.     #[ORM\OneToMany(mappedBy'school'targetEntityBlameWarningConfig::class)]
  128.     private Collection $blameWarningConfigs;
  129.     #[ORM\OneToMany(mappedBy'school'targetEntityBlameRetainedConfig::class)]
  130.     private Collection $blameRetainedConfigs;
  131.     #[ORM\OneToMany(mappedBy'school'targetEntityBlameDisciplineConcileConfig::class)]
  132.     private Collection $blameDisciplineConcileConfigs;
  133.     #[ORM\OneToMany(mappedBy'school'targetEntityRetainedExclusionConfig::class)]
  134.     private Collection $retainedExclusionConfigs;
  135.     #[ORM\OneToMany(mappedBy'school'targetEntityWarningExclusionConfig::class)]
  136.     private Collection $warningExclusionConfigs;
  137.     #[ORM\OneToMany(mappedBy'school'targetEntityWarningDefinitiveExclusionConfig::class)]
  138.     private Collection $warningDefinitiveExclusionConfigs;
  139.     #[ORM\Column(nullabletrue)]
  140.     private ?int $type null;
  141.     #[ORM\Column(length255nullabletrue)]
  142.     private ?string $englishName null;
  143.     #[ORM\Column(nullabletrue)]
  144.     private ?int $langage null;
  145.     #[ORM\OneToMany(mappedBy'school'targetEntityPrimaryParentNote::class)]
  146.     private Collection $primaryParentNotes;
  147.     #[ORM\OneToMany(mappedBy'school'targetEntityPrimaryNote::class)]
  148.     private Collection $primaryNotes;
  149.     #[ORM\OneToMany(mappedBy'school'targetEntityVerbalProcessCategory::class)]
  150.     private Collection $verbalProcessCategories;
  151.     #[ORM\OneToMany(mappedBy'school'targetEntityGlobalDisciplineConfig::class)]
  152.     private Collection $globalDisciplineConfigs;
  153.     #[ORM\OneToMany(mappedBy'school'targetEntityDisciplinePunish::class)]
  154.     private Collection $disciplinePunishes;
  155.     #[ORM\OneToMany(mappedBy'school'targetEntityGlobalDisciplineEnabledConfig::class)]
  156.     private Collection $globalDisciplineEnabledConfigs;
  157.     #[ORM\OneToMany(mappedBy'school'targetEntityBlamePunishConfig::class)]
  158.     private Collection $blamePunishConfigs;
  159.     #[ORM\OneToMany(mappedBy'school'targetEntityAbsencePunishConfig::class)]
  160.     private Collection $absencePunishConfigs;
  161.     #[ORM\OneToMany(mappedBy'school'targetEntityWarningPunishConfig::class)]
  162.     private Collection $warningPunishConfigs;
  163.     #[ORM\OneToMany(mappedBy'school'targetEntityPunishRetainedConfig::class)]
  164.     private Collection $punishRetainedConfigs;
  165.     #[ORM\OneToMany(mappedBy'school'targetEntityPunishWarningConfig::class)]
  166.     private Collection $punishWarningConfigs;
  167.     #[ORM\OneToMany(mappedBy'school'targetEntityPunishBlameConfig::class)]
  168.     private Collection $punishBlameConfigs;
  169.     #[ORM\OneToMany(mappedBy'school'targetEntityPunishExclusionConfig::class)]
  170.     private Collection $punishExclusionConfigs;
  171.     #[ORM\Column(length255nullabletrue)]
  172.     private ?string $nameEn null;
  173.     #[ORM\Column(length255nullabletrue)]
  174.     private ?string $region null;
  175.     #[ORM\Column(length255nullabletrue)]
  176.     private ?string $department null;
  177.     #[ORM\Column(length255nullabletrue)]
  178.     private ?string $arrondissement null;
  179.     #[ORM\OneToMany(mappedBy'school'targetEntityUserIphoneToken::class)]
  180.     private Collection $userIphoneTokens;
  181.     #[ORM\OneToMany(mappedBy'school'targetEntityUserAndroidToken::class)]
  182.     private Collection $userAndroidTokens;
  183.     #[ORM\OneToMany(mappedBy'school'targetEntityNewsCategory::class)]
  184.     private Collection $newsCategories;
  185.     #[ORM\OneToMany(mappedBy'school'targetEntityBlame::class)]
  186.     private Collection $blames;
  187.     #[ORM\OneToMany(mappedBy'school'targetEntityWarning::class)]
  188.     private Collection $warnings;
  189.     #[ORM\OneToMany(mappedBy'school'targetEntityRetained::class)]
  190.     private Collection $retaineds;
  191.     #[ORM\Column(length255nullabletrue)]
  192.     private ?string $city null;
  193.     #[ORM\Column(length255nullabletrue)]
  194.     private ?string $phone1 null;
  195.     #[ORM\Column(length255nullabletrue)]
  196.     private ?string $phone2 null;
  197.     #[ORM\Column(length255nullabletrue)]
  198.     private ?string $box null;
  199.     #[ORM\OneToMany(mappedBy'school'targetEntityHonnorTableLimitMoy::class)]
  200.     private Collection $honnorTableLimitMoys;
  201.     #[ORM\OneToMany(mappedBy'school'targetEntitySchoolYearInfos::class)]
  202.     private Collection $schoolYearInfos;
  203.     #[ORM\OneToMany(mappedBy'school'targetEntityCallNumber::class)]
  204.     private Collection $callNumbers;
  205.     #[ORM\OneToMany(mappedBy'school'targetEntityCallNumber::class)]
  206.     private Collection $callçnumber;
  207.     public function __construct()
  208.     {
  209.         $this->users = new ArrayCollection();
  210.         $this->userYears = new ArrayCollection();
  211.         $this->students = new ArrayCollection();
  212.         $this->studentYears = new ArrayCollection();
  213.         $this->absences = new ArrayCollection();
  214.         $this->notes = new ArrayCollection();
  215.         $this->docInfos = new ArrayCollection();
  216.         $this->events = new ArrayCollection();
  217.         $this->exams = new ArrayCollection();
  218.         $this->homeWorks = new ArrayCollection();
  219.         $this->lates = new ArrayCollection();
  220.         $this->homeWorkYears = new ArrayCollection();
  221.         $this->punishes = new ArrayCollection();
  222.         $this->punishCategories = new ArrayCollection();
  223.         $this->schoolSections = new ArrayCollection();
  224.         $this->theClasses = new ArrayCollection();
  225.         $this->subjects = new ArrayCollection();
  226.         $this->subjectGroups = new ArrayCollection();
  227.         $this->discussions = new ArrayCollection();
  228.         $this->discussionClasses = new ArrayCollection();
  229.         $this->categoryEvents = new ArrayCollection();
  230.         $this->news = new ArrayCollection();
  231.         $this->agendas = new ArrayCollection();
  232.         $this->examAgendas = new ArrayCollection();
  233.         $this->subSequences = new ArrayCollection();
  234.         $this->quarters = new ArrayCollection();
  235.         $this->subNotes = new ArrayCollection();
  236.         $this->globalExams = new ArrayCollection();
  237.         $this->globalQuarters = new ArrayCollection();
  238.         $this->appreciations = new ArrayCollection();
  239.         $this->scolarities = new ArrayCollection();
  240.         $this->scolarityHistories = new ArrayCollection();
  241.         $this->disciplineWarnings = new ArrayCollection();
  242.         $this->disciplineBlames = new ArrayCollection();
  243.         $this->disciplineExclusions = new ArrayCollection();
  244.         $this->parentNotes = new ArrayCollection();
  245.         $this->justifyAbsences = new ArrayCollection();
  246.         $this->absenceRetainedConfigs = new ArrayCollection();
  247.         $this->absenceWarningConfigs = new ArrayCollection();
  248.         $this->absenceExclusionConfigs = new ArrayCollection();
  249.         $this->absenceBlameConfigs = new ArrayCollection();
  250.         $this->disciplineRetaineds = new ArrayCollection();
  251.         $this->definitiveExclusions = new ArrayCollection();
  252.         $this->disciplineConciles = new ArrayCollection();
  253.         $this->retainedDisciplineConcileConfigs = new ArrayCollection();
  254.         $this->retainedBlameConfigs = new ArrayCollection();
  255.         $this->retainedWarningConfigs = new ArrayCollection();
  256.         $this->retainedDefinitiveExclusionConfigs = new ArrayCollection();
  257.         $this->blameDefinitiveExclusionConfigs = new ArrayCollection();
  258.         $this->blameExclusionConfigs = new ArrayCollection();
  259.         $this->blameWarningConfigs = new ArrayCollection();
  260.         $this->blameRetainedConfigs = new ArrayCollection();
  261.         $this->blameDisciplineConcileConfigs = new ArrayCollection();
  262.         $this->retainedExclusionConfigs = new ArrayCollection();
  263.         $this->warningExclusionConfigs = new ArrayCollection();
  264.         $this->warningDefinitiveExclusionConfigs = new ArrayCollection();
  265.         $this->primaryParentNotes = new ArrayCollection();
  266.         $this->primaryNotes = new ArrayCollection();
  267.         $this->verbalProcessCategories = new ArrayCollection();
  268.         $this->globalDisciplineConfigs = new ArrayCollection();
  269.         $this->disciplinePunishes = new ArrayCollection();
  270.         $this->globalDisciplineEnabledConfigs = new ArrayCollection();
  271.         $this->blamePunishConfigs = new ArrayCollection();
  272.         $this->absencePunishConfigs = new ArrayCollection();
  273.         $this->warningPunishConfigs = new ArrayCollection();
  274.         $this->punishRetainedConfigs = new ArrayCollection();
  275.         $this->punishWarningConfigs = new ArrayCollection();
  276.         $this->punishBlameConfigs = new ArrayCollection();
  277.         $this->punishExclusionConfigs = new ArrayCollection();
  278.         $this->userIphoneTokens = new ArrayCollection();
  279.         $this->userAndroidTokens = new ArrayCollection();
  280.         $this->newsCategories = new ArrayCollection();
  281.         $this->blames = new ArrayCollection();
  282.         $this->warnings = new ArrayCollection();
  283.         $this->retaineds = new ArrayCollection();
  284.         $this->honnorTableLimitMoys = new ArrayCollection();
  285.         $this->schoolYearInfos = new ArrayCollection();
  286.         $this->callNumbers = new ArrayCollection();
  287.         $this->callçnumber = new ArrayCollection();
  288.     }
  289.     public function getId(): ?int
  290.     {
  291.         return $this->id;
  292.     }
  293.     public function getName(): ?string
  294.     {
  295.         return $this->name;
  296.     }
  297.     public function setName(string $name): static
  298.     {
  299.         $this->name $name;
  300.         return $this;
  301.     }
  302.     public function getPhone(): ?string
  303.     {
  304.         return $this->phone;
  305.     }
  306.     public function setPhone(string $phone): static
  307.     {
  308.         $this->phone $phone;
  309.         return $this;
  310.     }
  311.     /**
  312.      * @return Collection<int, User>
  313.      */
  314.     public function getUsers(): Collection
  315.     {
  316.         return $this->users;
  317.     }
  318.     public function addUser(User $user): static
  319.     {
  320.         if (!$this->users->contains($user)) {
  321.             $this->users->add($user);
  322.             $user->setSchool($this);
  323.         }
  324.         return $this;
  325.     }
  326.     public function removeUser(User $user): static
  327.     {
  328.         if ($this->users->removeElement($user)) {
  329.             // set the owning side to null (unless already changed)
  330.             if ($user->getSchool() === $this) {
  331.                 $user->setSchool(null);
  332.             }
  333.         }
  334.         return $this;
  335.     }
  336.     public function getEmail(): ?string
  337.     {
  338.         return $this->email;
  339.     }
  340.     public function setEmail(?string $email): static
  341.     {
  342.         $this->email $email;
  343.         return $this;
  344.     }
  345.     /**
  346.      * @return Collection<int, UserYear>
  347.      */
  348.     public function getUserYears(): Collection
  349.     {
  350.         return $this->userYears;
  351.     }
  352.     public function addUserYear(UserYear $userYear): static
  353.     {
  354.         if (!$this->userYears->contains($userYear)) {
  355.             $this->userYears->add($userYear);
  356.             $userYear->setSchool($this);
  357.         }
  358.         return $this;
  359.     }
  360.     public function removeUserYear(UserYear $userYear): static
  361.     {
  362.         if ($this->userYears->removeElement($userYear)) {
  363.             // set the owning side to null (unless already changed)
  364.             if ($userYear->getSchool() === $this) {
  365.                 $userYear->setSchool(null);
  366.             }
  367.         }
  368.         return $this;
  369.     }
  370.     /**
  371.      * @return Collection<int, Student>
  372.      */
  373.     public function getStudents(): Collection
  374.     {
  375.         return $this->students;
  376.     }
  377.     public function addStudent(Student $student): static
  378.     {
  379.         if (!$this->students->contains($student)) {
  380.             $this->students->add($student);
  381.             $student->setSchool($this);
  382.         }
  383.         return $this;
  384.     }
  385.     public function removeStudent(Student $student): static
  386.     {
  387.         if ($this->students->removeElement($student)) {
  388.             // set the owning side to null (unless already changed)
  389.             if ($student->getSchool() === $this) {
  390.                 $student->setSchool(null);
  391.             }
  392.         }
  393.         return $this;
  394.     }
  395.     /**
  396.      * @return Collection<int, StudentYear>
  397.      */
  398.     public function getStudentYears(): Collection
  399.     {
  400.         return $this->studentYears;
  401.     }
  402.     public function addStudentYear(StudentYear $studentYear): static
  403.     {
  404.         if (!$this->studentYears->contains($studentYear)) {
  405.             $this->studentYears->add($studentYear);
  406.             $studentYear->setSchool($this);
  407.         }
  408.         return $this;
  409.     }
  410.     public function removeStudentYear(StudentYear $studentYear): static
  411.     {
  412.         if ($this->studentYears->removeElement($studentYear)) {
  413.             // set the owning side to null (unless already changed)
  414.             if ($studentYear->getSchool() === $this) {
  415.                 $studentYear->setSchool(null);
  416.             }
  417.         }
  418.         return $this;
  419.     }
  420.     /**
  421.      * @return Collection<int, Absence>
  422.      */
  423.     public function getAbsences(): Collection
  424.     {
  425.         return $this->absences;
  426.     }
  427.     public function addAbsence(Absence $absence): static
  428.     {
  429.         if (!$this->absences->contains($absence)) {
  430.             $this->absences->add($absence);
  431.             $absence->setSchool($this);
  432.         }
  433.         return $this;
  434.     }
  435.     public function removeAbsence(Absence $absence): static
  436.     {
  437.         if ($this->absences->removeElement($absence)) {
  438.             // set the owning side to null (unless already changed)
  439.             if ($absence->getSchool() === $this) {
  440.                 $absence->setSchool(null);
  441.             }
  442.         }
  443.         return $this;
  444.     }
  445.     /**
  446.      * @return Collection<int, Note>
  447.      */
  448.     public function getNotes(): Collection
  449.     {
  450.         return $this->notes;
  451.     }
  452.     public function addNote(Note $note): static
  453.     {
  454.         if (!$this->notes->contains($note)) {
  455.             $this->notes->add($note);
  456.             $note->setSchool($this);
  457.         }
  458.         return $this;
  459.     }
  460.     public function removeNote(Note $note): static
  461.     {
  462.         if ($this->notes->removeElement($note)) {
  463.             // set the owning side to null (unless already changed)
  464.             if ($note->getSchool() === $this) {
  465.                 $note->setSchool(null);
  466.             }
  467.         }
  468.         return $this;
  469.     }
  470.     /**
  471.      * @return Collection<int, DocInfo>
  472.      */
  473.     public function getDocInfos(): Collection
  474.     {
  475.         return $this->docInfos;
  476.     }
  477.     public function addDocInfo(DocInfo $docInfo): static
  478.     {
  479.         if (!$this->docInfos->contains($docInfo)) {
  480.             $this->docInfos->add($docInfo);
  481.             $docInfo->setSchool($this);
  482.         }
  483.         return $this;
  484.     }
  485.     public function removeDocInfo(DocInfo $docInfo): static
  486.     {
  487.         if ($this->docInfos->removeElement($docInfo)) {
  488.             // set the owning side to null (unless already changed)
  489.             if ($docInfo->getSchool() === $this) {
  490.                 $docInfo->setSchool(null);
  491.             }
  492.         }
  493.         return $this;
  494.     }
  495.     /**
  496.      * @return Collection<int, Event>
  497.      */
  498.     public function getEvents(): Collection
  499.     {
  500.         return $this->events;
  501.     }
  502.     public function addEvent(Event $event): static
  503.     {
  504.         if (!$this->events->contains($event)) {
  505.             $this->events->add($event);
  506.             $event->setSchool($this);
  507.         }
  508.         return $this;
  509.     }
  510.     public function removeEvent(Event $event): static
  511.     {
  512.         if ($this->events->removeElement($event)) {
  513.             // set the owning side to null (unless already changed)
  514.             if ($event->getSchool() === $this) {
  515.                 $event->setSchool(null);
  516.             }
  517.         }
  518.         return $this;
  519.     }
  520.     /**
  521.      * @return Collection<int, Exams>
  522.      */
  523.     public function getExams(): Collection
  524.     {
  525.         return $this->exams;
  526.     }
  527.     public function addExam(Exams $exam): static
  528.     {
  529.         if (!$this->exams->contains($exam)) {
  530.             $this->exams->add($exam);
  531.             $exam->setSchool($this);
  532.         }
  533.         return $this;
  534.     }
  535.     public function removeExam(Exams $exam): static
  536.     {
  537.         if ($this->exams->removeElement($exam)) {
  538.             // set the owning side to null (unless already changed)
  539.             if ($exam->getSchool() === $this) {
  540.                 $exam->setSchool(null);
  541.             }
  542.         }
  543.         return $this;
  544.     }
  545.     /**
  546.      * @return Collection<int, HomeWork>
  547.      */
  548.     public function getHomeWorks(): Collection
  549.     {
  550.         return $this->homeWorks;
  551.     }
  552.     public function addHomeWork(HomeWork $homeWork): static
  553.     {
  554.         if (!$this->homeWorks->contains($homeWork)) {
  555.             $this->homeWorks->add($homeWork);
  556.             $homeWork->setSchool($this);
  557.         }
  558.         return $this;
  559.     }
  560.     public function removeHomeWork(HomeWork $homeWork): static
  561.     {
  562.         if ($this->homeWorks->removeElement($homeWork)) {
  563.             // set the owning side to null (unless already changed)
  564.             if ($homeWork->getSchool() === $this) {
  565.                 $homeWork->setSchool(null);
  566.             }
  567.         }
  568.         return $this;
  569.     }
  570.     /**
  571.      * @return Collection<int, Late>
  572.      */
  573.     public function getLates(): Collection
  574.     {
  575.         return $this->lates;
  576.     }
  577.     public function addLate(Late $late): static
  578.     {
  579.         if (!$this->lates->contains($late)) {
  580.             $this->lates->add($late);
  581.             $late->setSchool($this);
  582.         }
  583.         return $this;
  584.     }
  585.     public function removeLate(Late $late): static
  586.     {
  587.         if ($this->lates->removeElement($late)) {
  588.             // set the owning side to null (unless already changed)
  589.             if ($late->getSchool() === $this) {
  590.                 $late->setSchool(null);
  591.             }
  592.         }
  593.         return $this;
  594.     }
  595.     /**
  596.      * @return Collection<int, HomeWorkYear>
  597.      */
  598.     public function getHomeWorkYears(): Collection
  599.     {
  600.         return $this->homeWorkYears;
  601.     }
  602.     public function addHomeWorkYear(HomeWorkYear $homeWorkYear): static
  603.     {
  604.         if (!$this->homeWorkYears->contains($homeWorkYear)) {
  605.             $this->homeWorkYears->add($homeWorkYear);
  606.             $homeWorkYear->setSchool($this);
  607.         }
  608.         return $this;
  609.     }
  610.     public function removeHomeWorkYear(HomeWorkYear $homeWorkYear): static
  611.     {
  612.         if ($this->homeWorkYears->removeElement($homeWorkYear)) {
  613.             // set the owning side to null (unless already changed)
  614.             if ($homeWorkYear->getSchool() === $this) {
  615.                 $homeWorkYear->setSchool(null);
  616.             }
  617.         }
  618.         return $this;
  619.     }
  620.     /**
  621.      * @return Collection<int, Punish>
  622.      */
  623.     public function getPunishes(): Collection
  624.     {
  625.         return $this->punishes;
  626.     }
  627.     public function addPunish(Punish $punish): static
  628.     {
  629.         if (!$this->punishes->contains($punish)) {
  630.             $this->punishes->add($punish);
  631.             $punish->setSchool($this);
  632.         }
  633.         return $this;
  634.     }
  635.     public function removePunish(Punish $punish): static
  636.     {
  637.         if ($this->punishes->removeElement($punish)) {
  638.             // set the owning side to null (unless already changed)
  639.             if ($punish->getSchool() === $this) {
  640.                 $punish->setSchool(null);
  641.             }
  642.         }
  643.         return $this;
  644.     }
  645.     /**
  646.      * @return Collection<int, PunishCategory>
  647.      */
  648.     public function getPunishCategories(): Collection
  649.     {
  650.         return $this->punishCategories;
  651.     }
  652.     public function addPunishCategory(PunishCategory $punishCategory): static
  653.     {
  654.         if (!$this->punishCategories->contains($punishCategory)) {
  655.             $this->punishCategories->add($punishCategory);
  656.             $punishCategory->setSchool($this);
  657.         }
  658.         return $this;
  659.     }
  660.     public function removePunishCategory(PunishCategory $punishCategory): static
  661.     {
  662.         if ($this->punishCategories->removeElement($punishCategory)) {
  663.             // set the owning side to null (unless already changed)
  664.             if ($punishCategory->getSchool() === $this) {
  665.                 $punishCategory->setSchool(null);
  666.             }
  667.         }
  668.         return $this;
  669.     }
  670.     /**
  671.      * @return Collection<int, SchoolSection>
  672.      */
  673.     public function getSchoolSections(): Collection
  674.     {
  675.         return $this->schoolSections;
  676.     }
  677.     public function addSchoolSection(SchoolSection $schoolSection): static
  678.     {
  679.         if (!$this->schoolSections->contains($schoolSection)) {
  680.             $this->schoolSections->add($schoolSection);
  681.             $schoolSection->setSchool($this);
  682.         }
  683.         return $this;
  684.     }
  685.     public function removeSchoolSection(SchoolSection $schoolSection): static
  686.     {
  687.         if ($this->schoolSections->removeElement($schoolSection)) {
  688.             // set the owning side to null (unless already changed)
  689.             if ($schoolSection->getSchool() === $this) {
  690.                 $schoolSection->setSchool(null);
  691.             }
  692.         }
  693.         return $this;
  694.     }
  695.     /**
  696.      * @return Collection<int, TheClass>
  697.      */
  698.     public function getTheClasses(): Collection
  699.     {
  700.         return $this->theClasses;
  701.     }
  702.     public function addTheClass(TheClass $theClass): static
  703.     {
  704.         if (!$this->theClasses->contains($theClass)) {
  705.             $this->theClasses->add($theClass);
  706.             $theClass->setSchool($this);
  707.         }
  708.         return $this;
  709.     }
  710.     public function removeTheClass(TheClass $theClass): static
  711.     {
  712.         if ($this->theClasses->removeElement($theClass)) {
  713.             // set the owning side to null (unless already changed)
  714.             if ($theClass->getSchool() === $this) {
  715.                 $theClass->setSchool(null);
  716.             }
  717.         }
  718.         return $this;
  719.     }
  720.     /**
  721.      * @return Collection<int, Subject>
  722.      */
  723.     public function getSubjects(): Collection
  724.     {
  725.         return $this->subjects;
  726.     }
  727.     public function addSubject(Subject $subject): static
  728.     {
  729.         if (!$this->subjects->contains($subject)) {
  730.             $this->subjects->add($subject);
  731.             $subject->setSchool($this);
  732.         }
  733.         return $this;
  734.     }
  735.     public function removeSubject(Subject $subject): static
  736.     {
  737.         if ($this->subjects->removeElement($subject)) {
  738.             // set the owning side to null (unless already changed)
  739.             if ($subject->getSchool() === $this) {
  740.                 $subject->setSchool(null);
  741.             }
  742.         }
  743.         return $this;
  744.     }
  745.     /**
  746.      * @return Collection<int, SubjectGroup>
  747.      */
  748.     public function getSubjectGroups(): Collection
  749.     {
  750.         return $this->subjectGroups;
  751.     }
  752.     public function addSubjectGroup(SubjectGroup $subjectGroup): static
  753.     {
  754.         if (!$this->subjectGroups->contains($subjectGroup)) {
  755.             $this->subjectGroups->add($subjectGroup);
  756.             $subjectGroup->setSchool($this);
  757.         }
  758.         return $this;
  759.     }
  760.     public function removeSubjectGroup(SubjectGroup $subjectGroup): static
  761.     {
  762.         if ($this->subjectGroups->removeElement($subjectGroup)) {
  763.             // set the owning side to null (unless already changed)
  764.             if ($subjectGroup->getSchool() === $this) {
  765.                 $subjectGroup->setSchool(null);
  766.             }
  767.         }
  768.         return $this;
  769.     }
  770.     /**
  771.      * @return Collection<int, Discussion>
  772.      */
  773.     public function getDiscussions(): Collection
  774.     {
  775.         return $this->discussions;
  776.     }
  777.     public function addDiscussion(Discussion $discussion): static
  778.     {
  779.         if (!$this->discussions->contains($discussion)) {
  780.             $this->discussions->add($discussion);
  781.             $discussion->setSchool($this);
  782.         }
  783.         return $this;
  784.     }
  785.     public function removeDiscussion(Discussion $discussion): static
  786.     {
  787.         if ($this->discussions->removeElement($discussion)) {
  788.             // set the owning side to null (unless already changed)
  789.             if ($discussion->getSchool() === $this) {
  790.                 $discussion->setSchool(null);
  791.             }
  792.         }
  793.         return $this;
  794.     }
  795.     /**
  796.      * @return Collection<int, DiscussionClass>
  797.      */
  798.     public function getDiscussionClasses(): Collection
  799.     {
  800.         return $this->discussionClasses;
  801.     }
  802.     public function addDiscussionClass(DiscussionClass $discussionClass): static
  803.     {
  804.         if (!$this->discussionClasses->contains($discussionClass)) {
  805.             $this->discussionClasses->add($discussionClass);
  806.             $discussionClass->setSchool($this);
  807.         }
  808.         return $this;
  809.     }
  810.     public function removeDiscussionClass(DiscussionClass $discussionClass): static
  811.     {
  812.         if ($this->discussionClasses->removeElement($discussionClass)) {
  813.             // set the owning side to null (unless already changed)
  814.             if ($discussionClass->getSchool() === $this) {
  815.                 $discussionClass->setSchool(null);
  816.             }
  817.         }
  818.         return $this;
  819.     }
  820.     /**
  821.      * @return Collection<int, CategoryEvent>
  822.      */
  823.     public function getCategoryEvents(): Collection
  824.     {
  825.         return $this->categoryEvents;
  826.     }
  827.     public function addCategoryEvent(CategoryEvent $categoryEvent): static
  828.     {
  829.         if (!$this->categoryEvents->contains($categoryEvent)) {
  830.             $this->categoryEvents->add($categoryEvent);
  831.             $categoryEvent->setSchool($this);
  832.         }
  833.         
  834.         return $this;
  835.     }
  836.     /*
  837.      * @return Collection<int, News>
  838.     */
  839.     public function getNews(): Collection
  840.     {
  841.         return $this->news;
  842.     }
  843.     public function addNews(News $news): static
  844.     {
  845.         if (!$this->news->contains($news)) {
  846.             $this->news->add($news);
  847.             $news->setSchool($this);
  848.         }
  849.         return $this;
  850.     }
  851.     public function removeCategoryEvent(CategoryEvent $categoryEvent): static
  852.     {
  853.         if ($this->categoryEvents->removeElement($categoryEvent)) {
  854.             // set the owning side to null (unless already changed)
  855.             if ($categoryEvent->getSchool() === $this) {
  856.                 $categoryEvent->setSchool(null);
  857.             }
  858.         }
  859.         return $this;
  860.     }
  861.     public function removeNews(News $news): static
  862.     {
  863.         if ($this->news->removeElement($news)) {
  864.             // set the owning side to null (unless already changed)
  865.             if ($news->getSchool() === $this) {
  866.                 $news->setSchool(null);
  867.             }
  868.         }
  869.         return $this;
  870.     }
  871.     /**
  872.      * @return Collection<int, Agenda>
  873.      */
  874.     public function getAgendas(): Collection
  875.     {
  876.         return $this->agendas;
  877.     }
  878.     public function addAgenda(Agenda $agenda): static
  879.     {
  880.         if (!$this->agendas->contains($agenda)) {
  881.             $this->agendas->add($agenda);
  882.             $agenda->setSchool($this);
  883.         }
  884.         return $this;
  885.     }
  886.     public function removeAgenda(Agenda $agenda): static
  887.     {
  888.         if ($this->agendas->removeElement($agenda)) {
  889.             // set the owning side to null (unless already changed)
  890.             if ($agenda->getSchool() === $this) {
  891.                 $agenda->setSchool(null);
  892.             }
  893.         }
  894.         return $this;
  895.     }
  896.     /**
  897.      * @return Collection<int, ExamAgenda>
  898.      */
  899.     public function getExamAgendas(): Collection
  900.     {
  901.         return $this->examAgendas;
  902.     }
  903.     public function addExamAgenda(ExamAgenda $examAgenda): static
  904.     {
  905.         if (!$this->examAgendas->contains($examAgenda)) {
  906.             $this->examAgendas->add($examAgenda);
  907.             $examAgenda->setSchool($this);
  908.         }
  909.         return $this;
  910.     }
  911.     public function removeExamAgenda(ExamAgenda $examAgenda): static
  912.     {
  913.         if ($this->examAgendas->removeElement($examAgenda)) {
  914.             // set the owning side to null (unless already changed)
  915.             if ($examAgenda->getSchool() === $this) {
  916.                 $examAgenda->setSchool(null);
  917.             }
  918.         }
  919.         return $this;
  920.     }
  921.     /**
  922.      * @return Collection<int, SubSequence>
  923.      */
  924.     public function getSubSequences(): Collection
  925.     {
  926.         return $this->subSequences;
  927.     }
  928.     public function addSubSequence(SubSequence $subSequence): static
  929.     {
  930.         if (!$this->subSequences->contains($subSequence)) {
  931.             $this->subSequences->add($subSequence);
  932.             $subSequence->setSchool($this);
  933.         }
  934.         return $this;
  935.     }
  936.     public function removeSubSequence(SubSequence $subSequence): static
  937.     {
  938.         if ($this->subSequences->removeElement($subSequence)) {
  939.             // set the owning side to null (unless already changed)
  940.             if ($subSequence->getSchool() === $this) {
  941.                 $subSequence->setSchool(null);
  942.             }
  943.         }
  944.         return $this;
  945.     }
  946.     /**
  947.      * @return Collection<int, Quarter>
  948.      */
  949.     public function getQuarters(): Collection
  950.     {
  951.         return $this->quarters;
  952.     }
  953.     public function addQuarter(Quarter $quarter): static
  954.     {
  955.         if (!$this->quarters->contains($quarter)) {
  956.             $this->quarters->add($quarter);
  957.             $quarter->setSchool($this);
  958.         }
  959.         return $this;
  960.     }
  961.     public function removeQuarter(Quarter $quarter): static
  962.     {
  963.         if ($this->quarters->removeElement($quarter)) {
  964.             // set the owning side to null (unless already changed)
  965.             if ($quarter->getSchool() === $this) {
  966.                 $quarter->setSchool(null);
  967.             }
  968.         }
  969.         return $this;
  970.     }
  971.     /**
  972.      * @return Collection<int, SubNote>
  973.      */
  974.     public function getSubNotes(): Collection
  975.     {
  976.         return $this->subNotes;
  977.     }
  978.     public function addSubNote(SubNote $subNote): static
  979.     {
  980.         if (!$this->subNotes->contains($subNote)) {
  981.             $this->subNotes->add($subNote);
  982.             $subNote->setSchool($this);
  983.         }
  984.         return $this;
  985.     }
  986.     public function removeSubNote(SubNote $subNote): static
  987.     {
  988.         if ($this->subNotes->removeElement($subNote)) {
  989.             // set the owning side to null (unless already changed)
  990.             if ($subNote->getSchool() === $this) {
  991.                 $subNote->setSchool(null);
  992.             }
  993.         }
  994.         return $this;
  995.     }
  996.     /**
  997.      * @return Collection<int, GlobalExam>
  998.      */
  999.     public function getGlobalExams(): Collection
  1000.     {
  1001.         return $this->globalExams;
  1002.     }
  1003.     public function addGlobalExam(GlobalExam $globalExam): static
  1004.     {
  1005.         if (!$this->globalExams->contains($globalExam)) {
  1006.             $this->globalExams->add($globalExam);
  1007.             $globalExam->setSchool($this);
  1008.         }
  1009.         return $this;
  1010.     }
  1011.     public function removeGlobalExam(GlobalExam $globalExam): static
  1012.     {
  1013.         if ($this->globalExams->removeElement($globalExam)) {
  1014.             // set the owning side to null (unless already changed)
  1015.             if ($globalExam->getSchool() === $this) {
  1016.                 $globalExam->setSchool(null);
  1017.             }
  1018.         }
  1019.         return $this;
  1020.     }
  1021.     /**
  1022.      * @return Collection<int, GlobalQuarter>
  1023.      */
  1024.     public function getGlobalQuarters(): Collection
  1025.     {
  1026.         return $this->globalQuarters;
  1027.     }
  1028.     public function addGlobalQuarter(GlobalQuarter $globalQuarter): static
  1029.     {
  1030.         if (!$this->globalQuarters->contains($globalQuarter)) {
  1031.             $this->globalQuarters->add($globalQuarter);
  1032.             $globalQuarter->setSchool($this);
  1033.         }
  1034.         return $this;
  1035.     }
  1036.     public function removeGlobalQuarter(GlobalQuarter $globalQuarter): static
  1037.     {
  1038.         if ($this->globalQuarters->removeElement($globalQuarter)) {
  1039.             // set the owning side to null (unless already changed)
  1040.             if ($globalQuarter->getSchool() === $this) {
  1041.                 $globalQuarter->setSchool(null);
  1042.             }
  1043.         }
  1044.         return $this;
  1045.     }
  1046.     /**
  1047.      * @return Collection<int, Appreciation>
  1048.      */
  1049.     public function getAppreciations(): Collection
  1050.     {
  1051.         return $this->appreciations;
  1052.     }
  1053.     public function addAppreciation(Appreciation $appreciation): static
  1054.     {
  1055.         if (!$this->appreciations->contains($appreciation)) {
  1056.             $this->appreciations->add($appreciation);
  1057.             $appreciation->setSchool($this);
  1058.         }
  1059.         return $this;
  1060.     }
  1061.     public function removeAppreciation(Appreciation $appreciation): static
  1062.     {
  1063.         if ($this->appreciations->removeElement($appreciation)) {
  1064.             // set the owning side to null (unless already changed)
  1065.             if ($appreciation->getSchool() === $this) {
  1066.                 $appreciation->setSchool(null);
  1067.             }
  1068.         }
  1069.         return $this;
  1070.     }
  1071.     /**
  1072.      * @return Collection<int, Scolarity>
  1073.      */
  1074.     public function getScolarities(): Collection
  1075.     {
  1076.         return $this->scolarities;
  1077.     }
  1078.     public function addScolarity(Scolarity $scolarity): static
  1079.     {
  1080.         if (!$this->scolarities->contains($scolarity)) {
  1081.             $this->scolarities->add($scolarity);
  1082.             $scolarity->setSchool($this);
  1083.         }
  1084.         return $this;
  1085.     }
  1086.     public function removeScolarity(Scolarity $scolarity): static
  1087.     {
  1088.         if ($this->scolarities->removeElement($scolarity)) {
  1089.             // set the owning side to null (unless already changed)
  1090.             if ($scolarity->getSchool() === $this) {
  1091.                 $scolarity->setSchool(null);
  1092.             }
  1093.         }
  1094.         return $this;
  1095.     }
  1096.     /**
  1097.      * @return Collection<int, ScolarityHistory>
  1098.      */
  1099.     public function getScolarityHistories(): Collection
  1100.     {
  1101.         return $this->scolarityHistories;
  1102.     }
  1103.     public function addScolarityHistory(ScolarityHistory $scolarityHistory): static
  1104.     {
  1105.         if (!$this->scolarityHistories->contains($scolarityHistory)) {
  1106.             $this->scolarityHistories->add($scolarityHistory);
  1107.             $scolarityHistory->setSchool($this);
  1108.         }
  1109.         return $this;
  1110.     }
  1111.     public function removeScolarityHistory(ScolarityHistory $scolarityHistory): static
  1112.     {
  1113.         if ($this->scolarityHistories->removeElement($scolarityHistory)) {
  1114.             // set the owning side to null (unless already changed)
  1115.             if ($scolarityHistory->getSchool() === $this) {
  1116.                 $scolarityHistory->setSchool(null);
  1117.             }
  1118.         }
  1119.         return $this;
  1120.     }
  1121.     /**
  1122.      * @return Collection<int, DisciplineWarning>
  1123.      */
  1124.     public function getDisciplineWarnings(): Collection
  1125.     {
  1126.         return $this->disciplineWarnings;
  1127.     }
  1128.     public function addDisciplineWarning(DisciplineWarning $disciplineWarning): static
  1129.     {
  1130.         if (!$this->disciplineWarnings->contains($disciplineWarning)) {
  1131.             $this->disciplineWarnings->add($disciplineWarning);
  1132.             $disciplineWarning->setSchool($this);
  1133.         }
  1134.         return $this;
  1135.     }
  1136.     public function removeDisciplineWarning(DisciplineWarning $disciplineWarning): static
  1137.     {
  1138.         if ($this->disciplineWarnings->removeElement($disciplineWarning)) {
  1139.             // set the owning side to null (unless already changed)
  1140.             if ($disciplineWarning->getSchool() === $this) {
  1141.                 $disciplineWarning->setSchool(null);
  1142.             }
  1143.         }
  1144.         return $this;
  1145.     }
  1146.     /**
  1147.      * @return Collection<int, DisciplineBlame>
  1148.      */
  1149.     public function getDisciplineBlames(): Collection
  1150.     {
  1151.         return $this->disciplineBlames;
  1152.     }
  1153.     public function addDisciplineBlame(DisciplineBlame $disciplineBlame): static
  1154.     {
  1155.         if (!$this->disciplineBlames->contains($disciplineBlame)) {
  1156.             $this->disciplineBlames->add($disciplineBlame);
  1157.             $disciplineBlame->setSchool($this);
  1158.         }
  1159.         return $this;
  1160.     }
  1161.     public function removeDisciplineBlame(DisciplineBlame $disciplineBlame): static
  1162.     {
  1163.         if ($this->disciplineBlames->removeElement($disciplineBlame)) {
  1164.             // set the owning side to null (unless already changed)
  1165.             if ($disciplineBlame->getSchool() === $this) {
  1166.                 $disciplineBlame->setSchool(null);
  1167.             }
  1168.         }
  1169.         return $this;
  1170.     }
  1171.     /**
  1172.      * @return Collection<int, DisciplineExclusion>
  1173.      */
  1174.     public function getDisciplineExclusions(): Collection
  1175.     {
  1176.         return $this->disciplineExclusions;
  1177.     }
  1178.     public function addDisciplineExclusion(DisciplineExclusion $disciplineExclusion): static
  1179.     {
  1180.         if (!$this->disciplineExclusions->contains($disciplineExclusion)) {
  1181.             $this->disciplineExclusions->add($disciplineExclusion);
  1182.             $disciplineExclusion->setSchool($this);
  1183.         }
  1184.         return $this;
  1185.     }
  1186.     public function removeDisciplineExclusion(DisciplineExclusion $disciplineExclusion): static
  1187.     {
  1188.         if ($this->disciplineExclusions->removeElement($disciplineExclusion)) {
  1189.             // set the owning side to null (unless already changed)
  1190.             if ($disciplineExclusion->getSchool() === $this) {
  1191.                 $disciplineExclusion->setSchool(null);
  1192.             }
  1193.         }
  1194.         return $this;
  1195.     }
  1196.     /**
  1197.      * @return Collection<int, ParentNote>
  1198.      */
  1199.     public function getParentNotes(): Collection
  1200.     {
  1201.         return $this->parentNotes;
  1202.     }
  1203.     public function addParentNote(ParentNote $parentNote): static
  1204.     {
  1205.         if (!$this->parentNotes->contains($parentNote)) {
  1206.             $this->parentNotes->add($parentNote);
  1207.             $parentNote->setSchool($this);
  1208.         }
  1209.         return $this;
  1210.     }
  1211.     public function removeParentNote(ParentNote $parentNote): static
  1212.     {
  1213.         if ($this->parentNotes->removeElement($parentNote)) {
  1214.             // set the owning side to null (unless already changed)
  1215.             if ($parentNote->getSchool() === $this) {
  1216.                 $parentNote->setSchool(null);
  1217.             }
  1218.         }
  1219.         return $this;
  1220.     }
  1221.     /**
  1222.      * @return Collection<int, JustifyAbsence>
  1223.      */
  1224.     public function getJustifyAbsences(): Collection
  1225.     {
  1226.         return $this->justifyAbsences;
  1227.     }
  1228.     public function addJustifyAbsence(JustifyAbsence $justifyAbsence): static
  1229.     {
  1230.         if (!$this->justifyAbsences->contains($justifyAbsence)) {
  1231.             $this->justifyAbsences->add($justifyAbsence);
  1232.             $justifyAbsence->setSchool($this);
  1233.         }
  1234.         return $this;
  1235.     }
  1236.     public function removeJustifyAbsence(JustifyAbsence $justifyAbsence): static
  1237.     {
  1238.         if ($this->justifyAbsences->removeElement($justifyAbsence)) {
  1239.             // set the owning side to null (unless already changed)
  1240.             if ($justifyAbsence->getSchool() === $this) {
  1241.                 $justifyAbsence->setSchool(null);
  1242.             }
  1243.         }
  1244.         return $this;
  1245.     }
  1246.     /**
  1247.      * @return Collection<int, AbsenceRetainedConfig>
  1248.      */
  1249.     public function getAbsenceRetainedConfigs(): Collection
  1250.     {
  1251.         return $this->absenceRetainedConfigs;
  1252.     }
  1253.     public function addAbsenceRetainedConfig(AbsenceRetainedConfig $absenceRetainedConfig): static
  1254.     {
  1255.         if (!$this->absenceRetainedConfigs->contains($absenceRetainedConfig)) {
  1256.             $this->absenceRetainedConfigs->add($absenceRetainedConfig);
  1257.             $absenceRetainedConfig->setSchool($this);
  1258.         }
  1259.         return $this;
  1260.     }
  1261.     public function removeAbsenceRetainedConfig(AbsenceRetainedConfig $absenceRetainedConfig): static
  1262.     {
  1263.         if ($this->absenceRetainedConfigs->removeElement($absenceRetainedConfig)) {
  1264.             // set the owning side to null (unless already changed)
  1265.             if ($absenceRetainedConfig->getSchool() === $this) {
  1266.                 $absenceRetainedConfig->setSchool(null);
  1267.             }
  1268.         }
  1269.         return $this;
  1270.     }
  1271.     /**
  1272.      * @return Collection<int, AbsenceWarningConfig>
  1273.      */
  1274.     public function getAbsenceWarningConfigs(): Collection
  1275.     {
  1276.         return $this->absenceWarningConfigs;
  1277.     }
  1278.     public function addAbsenceWarningConfig(AbsenceWarningConfig $absenceWarningConfig): static
  1279.     {
  1280.         if (!$this->absenceWarningConfigs->contains($absenceWarningConfig)) {
  1281.             $this->absenceWarningConfigs->add($absenceWarningConfig);
  1282.             $absenceWarningConfig->setSchool($this);
  1283.         }
  1284.         return $this;
  1285.     }
  1286.     public function removeAbsenceWarningConfig(AbsenceWarningConfig $absenceWarningConfig): static
  1287.     {
  1288.         if ($this->absenceWarningConfigs->removeElement($absenceWarningConfig)) {
  1289.             // set the owning side to null (unless already changed)
  1290.             if ($absenceWarningConfig->getSchool() === $this) {
  1291.                 $absenceWarningConfig->setSchool(null);
  1292.             }
  1293.         }
  1294.         return $this;
  1295.     }
  1296.     /**
  1297.      * @return Collection<int, AbsenceExclusionConfig>
  1298.      */
  1299.     public function getAbsenceExclusionConfigs(): Collection
  1300.     {
  1301.         return $this->absenceExclusionConfigs;
  1302.     }
  1303.     public function addAbsenceExclusionConfig(AbsenceExclusionConfig $absenceExclusionConfig): static
  1304.     {
  1305.         if (!$this->absenceExclusionConfigs->contains($absenceExclusionConfig)) {
  1306.             $this->absenceExclusionConfigs->add($absenceExclusionConfig);
  1307.             $absenceExclusionConfig->setSchool($this);
  1308.         }
  1309.         return $this;
  1310.     }
  1311.     public function removeAbsenceExclusionConfig(AbsenceExclusionConfig $absenceExclusionConfig): static
  1312.     {
  1313.         if ($this->absenceExclusionConfigs->removeElement($absenceExclusionConfig)) {
  1314.             // set the owning side to null (unless already changed)
  1315.             if ($absenceExclusionConfig->getSchool() === $this) {
  1316.                 $absenceExclusionConfig->setSchool(null);
  1317.             }
  1318.         }
  1319.         return $this;
  1320.     }
  1321.     /**
  1322.      * @return Collection<int, AbsenceBlameConfig>
  1323.      */
  1324.     public function getAbsenceBlameConfigs(): Collection
  1325.     {
  1326.         return $this->absenceBlameConfigs;
  1327.     }
  1328.     public function addAbsenceBlameConfig(AbsenceBlameConfig $absenceBlameConfig): static
  1329.     {
  1330.         if (!$this->absenceBlameConfigs->contains($absenceBlameConfig)) {
  1331.             $this->absenceBlameConfigs->add($absenceBlameConfig);
  1332.             $absenceBlameConfig->setSchool($this);
  1333.         }
  1334.         return $this;
  1335.     }
  1336.     public function removeAbsenceBlameConfig(AbsenceBlameConfig $absenceBlameConfig): static
  1337.     {
  1338.         if ($this->absenceBlameConfigs->removeElement($absenceBlameConfig)) {
  1339.             // set the owning side to null (unless already changed)
  1340.             if ($absenceBlameConfig->getSchool() === $this) {
  1341.                 $absenceBlameConfig->setSchool(null);
  1342.             }
  1343.         }
  1344.         return $this;
  1345.     }
  1346.     /**
  1347.      * @return Collection<int, DisciplineRetained>
  1348.      */
  1349.     public function getDisciplineRetaineds(): Collection
  1350.     {
  1351.         return $this->disciplineRetaineds;
  1352.     }
  1353.     public function addDisciplineRetained(DisciplineRetained $disciplineRetained): static
  1354.     {
  1355.         if (!$this->disciplineRetaineds->contains($disciplineRetained)) {
  1356.             $this->disciplineRetaineds->add($disciplineRetained);
  1357.             $disciplineRetained->setSchool($this);
  1358.         }
  1359.         return $this;
  1360.     }
  1361.     public function removeDisciplineRetained(DisciplineRetained $disciplineRetained): static
  1362.     {
  1363.         if ($this->disciplineRetaineds->removeElement($disciplineRetained)) {
  1364.             // set the owning side to null (unless already changed)
  1365.             if ($disciplineRetained->getSchool() === $this) {
  1366.                 $disciplineRetained->setSchool(null);
  1367.             }
  1368.         }
  1369.         return $this;
  1370.     }
  1371.     /**
  1372.      * @return Collection<int, DefinitiveExclusion>
  1373.      */
  1374.     public function getDefinitiveExclusions(): Collection
  1375.     {
  1376.         return $this->definitiveExclusions;
  1377.     }
  1378.     public function addDefinitiveExclusion(DefinitiveExclusion $definitiveExclusion): static
  1379.     {
  1380.         if (!$this->definitiveExclusions->contains($definitiveExclusion)) {
  1381.             $this->definitiveExclusions->add($definitiveExclusion);
  1382.             $definitiveExclusion->setSchool($this);
  1383.         }
  1384.         return $this;
  1385.     }
  1386.     public function removeDefinitiveExclusion(DefinitiveExclusion $definitiveExclusion): static
  1387.     {
  1388.         if ($this->definitiveExclusions->removeElement($definitiveExclusion)) {
  1389.             // set the owning side to null (unless already changed)
  1390.             if ($definitiveExclusion->getSchool() === $this) {
  1391.                 $definitiveExclusion->setSchool(null);
  1392.             }
  1393.         }
  1394.         return $this;
  1395.     }
  1396.     /**
  1397.      * @return Collection<int, DisciplineConcile>
  1398.      */
  1399.     public function getDisciplineConciles(): Collection
  1400.     {
  1401.         return $this->disciplineConciles;
  1402.     }
  1403.     public function addDisciplineConcile(DisciplineConcile $disciplineConcile): static
  1404.     {
  1405.         if (!$this->disciplineConciles->contains($disciplineConcile)) {
  1406.             $this->disciplineConciles->add($disciplineConcile);
  1407.             $disciplineConcile->setSchool($this);
  1408.         }
  1409.         return $this;
  1410.     }
  1411.     public function removeDisciplineConcile(DisciplineConcile $disciplineConcile): static
  1412.     {
  1413.         if ($this->disciplineConciles->removeElement($disciplineConcile)) {
  1414.             // set the owning side to null (unless already changed)
  1415.             if ($disciplineConcile->getSchool() === $this) {
  1416.                 $disciplineConcile->setSchool(null);
  1417.             }
  1418.         }
  1419.         return $this;
  1420.     }
  1421.     /**
  1422.      * @return Collection<int, RetainedDisciplineConcileConfig>
  1423.      */
  1424.     public function getRetainedDisciplineConcileConfigs(): Collection
  1425.     {
  1426.         return $this->retainedDisciplineConcileConfigs;
  1427.     }
  1428.     public function addRetainedDisciplineConcileConfig(RetainedDisciplineConcileConfig $retainedDisciplineConcileConfig): static
  1429.     {
  1430.         if (!$this->retainedDisciplineConcileConfigs->contains($retainedDisciplineConcileConfig)) {
  1431.             $this->retainedDisciplineConcileConfigs->add($retainedDisciplineConcileConfig);
  1432.             $retainedDisciplineConcileConfig->setSchool($this);
  1433.         }
  1434.         return $this;
  1435.     }
  1436.     public function removeRetainedDisciplineConcileConfig(RetainedDisciplineConcileConfig $retainedDisciplineConcileConfig): static
  1437.     {
  1438.         if ($this->retainedDisciplineConcileConfigs->removeElement($retainedDisciplineConcileConfig)) {
  1439.             // set the owning side to null (unless already changed)
  1440.             if ($retainedDisciplineConcileConfig->getSchool() === $this) {
  1441.                 $retainedDisciplineConcileConfig->setSchool(null);
  1442.             }
  1443.         }
  1444.         return $this;
  1445.     }
  1446.     /**
  1447.      * @return Collection<int, RetainedBlameConfig>
  1448.      */
  1449.     public function getRetainedBlameConfigs(): Collection
  1450.     {
  1451.         return $this->retainedBlameConfigs;
  1452.     }
  1453.     public function addRetainedBlameConfig(RetainedBlameConfig $retainedBlameConfig): static
  1454.     {
  1455.         if (!$this->retainedBlameConfigs->contains($retainedBlameConfig)) {
  1456.             $this->retainedBlameConfigs->add($retainedBlameConfig);
  1457.             $retainedBlameConfig->setSchool($this);
  1458.         }
  1459.         return $this;
  1460.     }
  1461.     public function removeRetainedBlameConfig(RetainedBlameConfig $retainedBlameConfig): static
  1462.     {
  1463.         if ($this->retainedBlameConfigs->removeElement($retainedBlameConfig)) {
  1464.             // set the owning side to null (unless already changed)
  1465.             if ($retainedBlameConfig->getSchool() === $this) {
  1466.                 $retainedBlameConfig->setSchool(null);
  1467.             }
  1468.         }
  1469.         return $this;
  1470.     }
  1471.     /**
  1472.      * @return Collection<int, RetainedWarningConfig>
  1473.      */
  1474.     public function getRetainedWarningConfigs(): Collection
  1475.     {
  1476.         return $this->retainedWarningConfigs;
  1477.     }
  1478.     public function addRetainedWarningConfig(RetainedWarningConfig $retainedWarningConfig): static
  1479.     {
  1480.         if (!$this->retainedWarningConfigs->contains($retainedWarningConfig)) {
  1481.             $this->retainedWarningConfigs->add($retainedWarningConfig);
  1482.             $retainedWarningConfig->setSchool($this);
  1483.         }
  1484.         return $this;
  1485.     }
  1486.     public function removeRetainedWarningConfig(RetainedWarningConfig $retainedWarningConfig): static
  1487.     {
  1488.         if ($this->retainedWarningConfigs->removeElement($retainedWarningConfig)) {
  1489.             // set the owning side to null (unless already changed)
  1490.             if ($retainedWarningConfig->getSchool() === $this) {
  1491.                 $retainedWarningConfig->setSchool(null);
  1492.             }
  1493.         }
  1494.         return $this;
  1495.     }
  1496.     /**
  1497.      * @return Collection<int, RetainedDefinitiveExclusionConfig>
  1498.      */
  1499.     public function getRetainedDefinitiveExclusionConfigs(): Collection
  1500.     {
  1501.         return $this->retainedDefinitiveExclusionConfigs;
  1502.     }
  1503.     public function addRetainedDefinitiveExclusionConfig(RetainedDefinitiveExclusionConfig $retainedDefinitiveExclusionConfig): static
  1504.     {
  1505.         if (!$this->retainedDefinitiveExclusionConfigs->contains($retainedDefinitiveExclusionConfig)) {
  1506.             $this->retainedDefinitiveExclusionConfigs->add($retainedDefinitiveExclusionConfig);
  1507.             $retainedDefinitiveExclusionConfig->setSchool($this);
  1508.         }
  1509.         return $this;
  1510.     }
  1511.     public function removeRetainedDefinitiveExclusionConfig(RetainedDefinitiveExclusionConfig $retainedDefinitiveExclusionConfig): static
  1512.     {
  1513.         if ($this->retainedDefinitiveExclusionConfigs->removeElement($retainedDefinitiveExclusionConfig)) {
  1514.             // set the owning side to null (unless already changed)
  1515.             if ($retainedDefinitiveExclusionConfig->getSchool() === $this) {
  1516.                 $retainedDefinitiveExclusionConfig->setSchool(null);
  1517.             }
  1518.         }
  1519.         return $this;
  1520.     }
  1521.     /**
  1522.      * @return Collection<int, BlameDefinitiveExclusionConfig>
  1523.      */
  1524.     public function getBlameDefinitiveExclusionConfigs(): Collection
  1525.     {
  1526.         return $this->blameDefinitiveExclusionConfigs;
  1527.     }
  1528.     public function addBlameDefinitiveExclusionConfig(BlameDefinitiveExclusionConfig $blameDefinitiveExclusionConfig): static
  1529.     {
  1530.         if (!$this->blameDefinitiveExclusionConfigs->contains($blameDefinitiveExclusionConfig)) {
  1531.             $this->blameDefinitiveExclusionConfigs->add($blameDefinitiveExclusionConfig);
  1532.             $blameDefinitiveExclusionConfig->setSchool($this);
  1533.         }
  1534.         return $this;
  1535.     }
  1536.     public function removeBlameDefinitiveExclusionConfig(BlameDefinitiveExclusionConfig $blameDefinitiveExclusionConfig): static
  1537.     {
  1538.         if ($this->blameDefinitiveExclusionConfigs->removeElement($blameDefinitiveExclusionConfig)) {
  1539.             // set the owning side to null (unless already changed)
  1540.             if ($blameDefinitiveExclusionConfig->getSchool() === $this) {
  1541.                 $blameDefinitiveExclusionConfig->setSchool(null);
  1542.             }
  1543.         }
  1544.         return $this;
  1545.     }
  1546.     /**
  1547.      * @return Collection<int, BlameExclusionConfig>
  1548.      */
  1549.     public function getBlameExclusionConfigs(): Collection
  1550.     {
  1551.         return $this->blameExclusionConfigs;
  1552.     }
  1553.     public function addBlameExclusionConfig(BlameExclusionConfig $blameExclusionConfig): static
  1554.     {
  1555.         if (!$this->blameExclusionConfigs->contains($blameExclusionConfig)) {
  1556.             $this->blameExclusionConfigs->add($blameExclusionConfig);
  1557.             $blameExclusionConfig->setSchool($this);
  1558.         }
  1559.         return $this;
  1560.     }
  1561.     public function removeBlameExclusionConfig(BlameExclusionConfig $blameExclusionConfig): static
  1562.     {
  1563.         if ($this->blameExclusionConfigs->removeElement($blameExclusionConfig)) {
  1564.             // set the owning side to null (unless already changed)
  1565.             if ($blameExclusionConfig->getSchool() === $this) {
  1566.                 $blameExclusionConfig->setSchool(null);
  1567.             }
  1568.         }
  1569.         return $this;
  1570.     }
  1571.     /**
  1572.      * @return Collection<int, BlameWarningConfig>
  1573.      */
  1574.     public function getBlameWarningConfigs(): Collection
  1575.     {
  1576.         return $this->blameWarningConfigs;
  1577.     }
  1578.     public function addBlameWarningConfig(BlameWarningConfig $blameWarningConfig): static
  1579.     {
  1580.         if (!$this->blameWarningConfigs->contains($blameWarningConfig)) {
  1581.             $this->blameWarningConfigs->add($blameWarningConfig);
  1582.             $blameWarningConfig->setSchool($this);
  1583.         }
  1584.         return $this;
  1585.     }
  1586.     public function removeBlameWarningConfig(BlameWarningConfig $blameWarningConfig): static
  1587.     {
  1588.         if ($this->blameWarningConfigs->removeElement($blameWarningConfig)) {
  1589.             // set the owning side to null (unless already changed)
  1590.             if ($blameWarningConfig->getSchool() === $this) {
  1591.                 $blameWarningConfig->setSchool(null);
  1592.             }
  1593.         }
  1594.         return $this;
  1595.     }
  1596.     /**
  1597.      * @return Collection<int, BlameRetainedConfig>
  1598.      */
  1599.     public function getBlameRetainedConfigs(): Collection
  1600.     {
  1601.         return $this->blameRetainedConfigs;
  1602.     }
  1603.     public function addBlameRetainedConfig(BlameRetainedConfig $blameRetainedConfig): static
  1604.     {
  1605.         if (!$this->blameRetainedConfigs->contains($blameRetainedConfig)) {
  1606.             $this->blameRetainedConfigs->add($blameRetainedConfig);
  1607.             $blameRetainedConfig->setSchool($this);
  1608.         }
  1609.         return $this;
  1610.     }
  1611.     public function removeBlameRetainedConfig(BlameRetainedConfig $blameRetainedConfig): static
  1612.     {
  1613.         if ($this->blameRetainedConfigs->removeElement($blameRetainedConfig)) {
  1614.             // set the owning side to null (unless already changed)
  1615.             if ($blameRetainedConfig->getSchool() === $this) {
  1616.                 $blameRetainedConfig->setSchool(null);
  1617.             }
  1618.         }
  1619.         return $this;
  1620.     }
  1621.     /**
  1622.      * @return Collection<int, BlameDisciplineConcileConfig>
  1623.      */
  1624.     public function getBlameDisciplineConcileConfigs(): Collection
  1625.     {
  1626.         return $this->blameDisciplineConcileConfigs;
  1627.     }
  1628.     public function addBlameDisciplineConcileConfig(BlameDisciplineConcileConfig $blameDisciplineConcileConfig): static
  1629.     {
  1630.         if (!$this->blameDisciplineConcileConfigs->contains($blameDisciplineConcileConfig)) {
  1631.             $this->blameDisciplineConcileConfigs->add($blameDisciplineConcileConfig);
  1632.             $blameDisciplineConcileConfig->setSchool($this);
  1633.         }
  1634.         return $this;
  1635.     }
  1636.     public function removeBlameDisciplineConcileConfig(BlameDisciplineConcileConfig $blameDisciplineConcileConfig): static
  1637.     {
  1638.         if ($this->blameDisciplineConcileConfigs->removeElement($blameDisciplineConcileConfig)) {
  1639.             // set the owning side to null (unless already changed)
  1640.             if ($blameDisciplineConcileConfig->getSchool() === $this) {
  1641.                 $blameDisciplineConcileConfig->setSchool(null);
  1642.             }
  1643.         }
  1644.         return $this;
  1645.     }
  1646.     /**
  1647.      * @return Collection<int, RetainedExclusionConfig>
  1648.      */
  1649.     public function getRetainedExclusionConfigs(): Collection
  1650.     {
  1651.         return $this->retainedExclusionConfigs;
  1652.     }
  1653.     public function addRetainedExclusionConfig(RetainedExclusionConfig $retainedExclusionConfig): static
  1654.     {
  1655.         if (!$this->retainedExclusionConfigs->contains($retainedExclusionConfig)) {
  1656.             $this->retainedExclusionConfigs->add($retainedExclusionConfig);
  1657.             $retainedExclusionConfig->setSchool($this);
  1658.         }
  1659.         return $this;
  1660.     }
  1661.     public function removeRetainedExclusionConfig(RetainedExclusionConfig $retainedExclusionConfig): static
  1662.     {
  1663.         if ($this->retainedExclusionConfigs->removeElement($retainedExclusionConfig)) {
  1664.             // set the owning side to null (unless already changed)
  1665.             if ($retainedExclusionConfig->getSchool() === $this) {
  1666.                 $retainedExclusionConfig->setSchool(null);
  1667.             }
  1668.         }
  1669.         return $this;
  1670.     }
  1671.     /**
  1672.      * @return Collection<int, WarningExclusionConfig>
  1673.      */
  1674.     public function getWarningExclusionConfigs(): Collection
  1675.     {
  1676.         return $this->warningExclusionConfigs;
  1677.     }
  1678.     public function addWarningExclusionConfig(WarningExclusionConfig $warningExclusionConfig): static
  1679.     {
  1680.         if (!$this->warningExclusionConfigs->contains($warningExclusionConfig)) {
  1681.             $this->warningExclusionConfigs->add($warningExclusionConfig);
  1682.             $warningExclusionConfig->setSchool($this);
  1683.         }
  1684.         return $this;
  1685.     }
  1686.     public function removeWarningExclusionConfig(WarningExclusionConfig $warningExclusionConfig): static
  1687.     {
  1688.         if ($this->warningExclusionConfigs->removeElement($warningExclusionConfig)) {
  1689.             // set the owning side to null (unless already changed)
  1690.             if ($warningExclusionConfig->getSchool() === $this) {
  1691.                 $warningExclusionConfig->setSchool(null);
  1692.             }
  1693.         }
  1694.         return $this;
  1695.     }
  1696.     /**
  1697.      * @return Collection<int, WarningDefinitiveExclusionConfig>
  1698.      */
  1699.     public function getWarningDefinitiveExclusionConfigs(): Collection
  1700.     {
  1701.         return $this->warningDefinitiveExclusionConfigs;
  1702.     }
  1703.     public function addWarningDefinitiveExclusionConfig(WarningDefinitiveExclusionConfig $warningDefinitiveExclusionConfig): static
  1704.     {
  1705.         if (!$this->warningDefinitiveExclusionConfigs->contains($warningDefinitiveExclusionConfig)) {
  1706.             $this->warningDefinitiveExclusionConfigs->add($warningDefinitiveExclusionConfig);
  1707.             $warningDefinitiveExclusionConfig->setSchool($this);
  1708.         }
  1709.         return $this;
  1710.     }
  1711.     public function removeWarningDefinitiveExclusionConfig(WarningDefinitiveExclusionConfig $warningDefinitiveExclusionConfig): static
  1712.     {
  1713.         if ($this->warningDefinitiveExclusionConfigs->removeElement($warningDefinitiveExclusionConfig)) {
  1714.             // set the owning side to null (unless already changed)
  1715.             if ($warningDefinitiveExclusionConfig->getSchool() === $this) {
  1716.                 $warningDefinitiveExclusionConfig->setSchool(null);
  1717.             }
  1718.         }
  1719.         return $this;
  1720.     }
  1721.     public function getType(): ?int
  1722.     {
  1723.         return $this->type;
  1724.     }
  1725.     public function setType(?int $type): static
  1726.     {
  1727.         $this->type $type;
  1728.         return $this;
  1729.     }
  1730.     public function getEnglishName(): ?string
  1731.     {
  1732.         return $this->englishName;
  1733.     }
  1734.     public function setEnglishName(?string $englishName): static
  1735.     {
  1736.         $this->englishName $englishName;
  1737.         return $this;
  1738.     }
  1739.     public function getLangage(): ?int
  1740.     {
  1741.         return $this->langage;
  1742.     }
  1743.     public function setLangage(?int $langage): static
  1744.     {
  1745.         $this->langage $langage;
  1746.         return $this;
  1747.     }
  1748.     /**
  1749.      * @return Collection<int, PrimaryParentNote>
  1750.      */
  1751.     public function getPrimaryParentNotes(): Collection
  1752.     {
  1753.         return $this->primaryParentNotes;
  1754.     }
  1755.     public function addPrimaryParentNote(PrimaryParentNote $primaryParentNote): static
  1756.     {
  1757.         if (!$this->primaryParentNotes->contains($primaryParentNote)) {
  1758.             $this->primaryParentNotes->add($primaryParentNote);
  1759.             $primaryParentNote->setSchool($this);
  1760.         }
  1761.         return $this;
  1762.     }
  1763.     public function removePrimaryParentNote(PrimaryParentNote $primaryParentNote): static
  1764.     {
  1765.         if ($this->primaryParentNotes->removeElement($primaryParentNote)) {
  1766.             // set the owning side to null (unless already changed)
  1767.             if ($primaryParentNote->getSchool() === $this) {
  1768.                 $primaryParentNote->setSchool(null);
  1769.             }
  1770.         }
  1771.         return $this;
  1772.     }
  1773.     /**
  1774.      * @return Collection<int, PrimaryNote>
  1775.      */
  1776.     public function getPrimaryNotes(): Collection
  1777.     {
  1778.         return $this->primaryNotes;
  1779.     }
  1780.     public function addPrimaryNote(PrimaryNote $primaryNote): static
  1781.     {
  1782.         if (!$this->primaryNotes->contains($primaryNote)) {
  1783.             $this->primaryNotes->add($primaryNote);
  1784.             $primaryNote->setSchool($this);
  1785.         }
  1786.         return $this;
  1787.     }
  1788.     public function removePrimaryNote(PrimaryNote $primaryNote): static
  1789.     {
  1790.         if ($this->primaryNotes->removeElement($primaryNote)) {
  1791.             // set the owning side to null (unless already changed)
  1792.             if ($primaryNote->getSchool() === $this) {
  1793.                 $primaryNote->setSchool(null);
  1794.             }
  1795.         }
  1796.         return $this;
  1797.     }
  1798.     /**
  1799.      * @return Collection<int, VerbalProcessCategory>
  1800.      */
  1801.     public function getVerbalProcessCategories(): Collection
  1802.     {
  1803.         return $this->verbalProcessCategories;
  1804.     }
  1805.     public function addVerbalProcessCategory(VerbalProcessCategory $verbalProcessCategory): static
  1806.     {
  1807.         if (!$this->verbalProcessCategories->contains($verbalProcessCategory)) {
  1808.             $this->verbalProcessCategories->add($verbalProcessCategory);
  1809.             $verbalProcessCategory->setSchool($this);
  1810.         }
  1811.         return $this;
  1812.     }
  1813.     public function removeVerbalProcessCategory(VerbalProcessCategory $verbalProcessCategory): static
  1814.     {
  1815.         if ($this->verbalProcessCategories->removeElement($verbalProcessCategory)) {
  1816.             // set the owning side to null (unless already changed)
  1817.             if ($verbalProcessCategory->getSchool() === $this) {
  1818.                 $verbalProcessCategory->setSchool(null);
  1819.             }
  1820.         }
  1821.         return $this;
  1822.     }
  1823.     /**
  1824.      * @return Collection<int, GlobalDisciplineConfig>
  1825.      */
  1826.     public function getGlobalDisciplineConfigs(): Collection
  1827.     {
  1828.         return $this->globalDisciplineConfigs;
  1829.     }
  1830.     public function addGlobalDisciplineConfig(GlobalDisciplineConfig $globalDisciplineConfig): static
  1831.     {
  1832.         if (!$this->globalDisciplineConfigs->contains($globalDisciplineConfig)) {
  1833.             $this->globalDisciplineConfigs->add($globalDisciplineConfig);
  1834.             $globalDisciplineConfig->setSchool($this);
  1835.         }
  1836.         return $this;
  1837.     }
  1838.     public function removeGlobalDisciplineConfig(GlobalDisciplineConfig $globalDisciplineConfig): static
  1839.     {
  1840.         if ($this->globalDisciplineConfigs->removeElement($globalDisciplineConfig)) {
  1841.             // set the owning side to null (unless already changed)
  1842.             if ($globalDisciplineConfig->getSchool() === $this) {
  1843.                 $globalDisciplineConfig->setSchool(null);
  1844.             }
  1845.         }
  1846.         return $this;
  1847.     }
  1848.     /**
  1849.      * @return Collection<int, DisciplinePunish>
  1850.      */
  1851.     public function getDisciplinePunishes(): Collection
  1852.     {
  1853.         return $this->disciplinePunishes;
  1854.     }
  1855.     public function addDisciplinePunish(DisciplinePunish $disciplinePunish): static
  1856.     {
  1857.         if (!$this->disciplinePunishes->contains($disciplinePunish)) {
  1858.             $this->disciplinePunishes->add($disciplinePunish);
  1859.             $disciplinePunish->setSchool($this);
  1860.         }
  1861.         return $this;
  1862.     }
  1863.     public function removeDisciplinePunish(DisciplinePunish $disciplinePunish): static
  1864.     {
  1865.         if ($this->disciplinePunishes->removeElement($disciplinePunish)) {
  1866.             // set the owning side to null (unless already changed)
  1867.             if ($disciplinePunish->getSchool() === $this) {
  1868.                 $disciplinePunish->setSchool(null);
  1869.             }
  1870.         }
  1871.         return $this;
  1872.     }
  1873.     /**
  1874.      * @return Collection<int, GlobalDisciplineEnabledConfig>
  1875.      */
  1876.     public function getGlobalDisciplineEnabledConfigs(): Collection
  1877.     {
  1878.         return $this->globalDisciplineEnabledConfigs;
  1879.     }
  1880.     public function addGlobalDisciplineEnabledConfig(GlobalDisciplineEnabledConfig $globalDisciplineEnabledConfig): static
  1881.     {
  1882.         if (!$this->globalDisciplineEnabledConfigs->contains($globalDisciplineEnabledConfig)) {
  1883.             $this->globalDisciplineEnabledConfigs->add($globalDisciplineEnabledConfig);
  1884.             $globalDisciplineEnabledConfig->setSchool($this);
  1885.         }
  1886.         return $this;
  1887.     }
  1888.     public function removeGlobalDisciplineEnabledConfig(GlobalDisciplineEnabledConfig $globalDisciplineEnabledConfig): static
  1889.     {
  1890.         if ($this->globalDisciplineEnabledConfigs->removeElement($globalDisciplineEnabledConfig)) {
  1891.             // set the owning side to null (unless already changed)
  1892.             if ($globalDisciplineEnabledConfig->getSchool() === $this) {
  1893.                 $globalDisciplineEnabledConfig->setSchool(null);
  1894.             }
  1895.         }
  1896.         return $this;
  1897.     }
  1898.     /**
  1899.      * @return Collection<int, BlamePunishConfig>
  1900.      */
  1901.     public function getBlamePunishConfigs(): Collection
  1902.     {
  1903.         return $this->blamePunishConfigs;
  1904.     }
  1905.     public function addBlamePunishConfig(BlamePunishConfig $blamePunishConfig): static
  1906.     {
  1907.         if (!$this->blamePunishConfigs->contains($blamePunishConfig)) {
  1908.             $this->blamePunishConfigs->add($blamePunishConfig);
  1909.             $blamePunishConfig->setSchool($this);
  1910.         }
  1911.         return $this;
  1912.     }
  1913.     public function removeBlamePunishConfig(BlamePunishConfig $blamePunishConfig): static
  1914.     {
  1915.         if ($this->blamePunishConfigs->removeElement($blamePunishConfig)) {
  1916.             // set the owning side to null (unless already changed)
  1917.             if ($blamePunishConfig->getSchool() === $this) {
  1918.                 $blamePunishConfig->setSchool(null);
  1919.             }
  1920.         }
  1921.         return $this;
  1922.     }
  1923.     /**
  1924.      * @return Collection<int, AbsencePunishConfig>
  1925.      */
  1926.     public function getAbsencePunishConfigs(): Collection
  1927.     {
  1928.         return $this->absencePunishConfigs;
  1929.     }
  1930.     public function addAbsencePunishConfig(AbsencePunishConfig $absencePunishConfig): static
  1931.     {
  1932.         if (!$this->absencePunishConfigs->contains($absencePunishConfig)) {
  1933.             $this->absencePunishConfigs->add($absencePunishConfig);
  1934.             $absencePunishConfig->setSchool($this);
  1935.         }
  1936.         return $this;
  1937.     }
  1938.     public function removeAbsencePunishConfig(AbsencePunishConfig $absencePunishConfig): static
  1939.     {
  1940.         if ($this->absencePunishConfigs->removeElement($absencePunishConfig)) {
  1941.             // set the owning side to null (unless already changed)
  1942.             if ($absencePunishConfig->getSchool() === $this) {
  1943.                 $absencePunishConfig->setSchool(null);
  1944.             }
  1945.         }
  1946.         return $this;
  1947.     }
  1948.     /**
  1949.      * @return Collection<int, WarningPunishConfig>
  1950.      */
  1951.     public function getWarningPunishConfigs(): Collection
  1952.     {
  1953.         return $this->warningPunishConfigs;
  1954.     }
  1955.     public function addWarningPunishConfig(WarningPunishConfig $warningPunishConfig): static
  1956.     {
  1957.         if (!$this->warningPunishConfigs->contains($warningPunishConfig)) {
  1958.             $this->warningPunishConfigs->add($warningPunishConfig);
  1959.             $warningPunishConfig->setSchool($this);
  1960.         }
  1961.         return $this;
  1962.     }
  1963.     public function removeWarningPunishConfig(WarningPunishConfig $warningPunishConfig): static
  1964.     {
  1965.         if ($this->warningPunishConfigs->removeElement($warningPunishConfig)) {
  1966.             // set the owning side to null (unless already changed)
  1967.             if ($warningPunishConfig->getSchool() === $this) {
  1968.                 $warningPunishConfig->setSchool(null);
  1969.             }
  1970.         }
  1971.         return $this;
  1972.     }
  1973.     /**
  1974.      * @return Collection<int, PunishRetainedConfig>
  1975.      */
  1976.     public function getPunishRetainedConfigs(): Collection
  1977.     {
  1978.         return $this->punishRetainedConfigs;
  1979.     }
  1980.     public function addPunishRetainedConfig(PunishRetainedConfig $punishRetainedConfig): static
  1981.     {
  1982.         if (!$this->punishRetainedConfigs->contains($punishRetainedConfig)) {
  1983.             $this->punishRetainedConfigs->add($punishRetainedConfig);
  1984.             $punishRetainedConfig->setSchool($this);
  1985.         }
  1986.         return $this;
  1987.     }
  1988.     public function removePunishRetainedConfig(PunishRetainedConfig $punishRetainedConfig): static
  1989.     {
  1990.         if ($this->punishRetainedConfigs->removeElement($punishRetainedConfig)) {
  1991.             // set the owning side to null (unless already changed)
  1992.             if ($punishRetainedConfig->getSchool() === $this) {
  1993.                 $punishRetainedConfig->setSchool(null);
  1994.             }
  1995.         }
  1996.         return $this;
  1997.     }
  1998.     /**
  1999.      * @return Collection<int, PunishWarningConfig>
  2000.      */
  2001.     public function getPunishWarningConfigs(): Collection
  2002.     {
  2003.         return $this->punishWarningConfigs;
  2004.     }
  2005.     public function addPunishWarningConfig(PunishWarningConfig $punishWarningConfig): static
  2006.     {
  2007.         if (!$this->punishWarningConfigs->contains($punishWarningConfig)) {
  2008.             $this->punishWarningConfigs->add($punishWarningConfig);
  2009.             $punishWarningConfig->setSchool($this);
  2010.         }
  2011.         return $this;
  2012.     }
  2013.     public function removePunishWarningConfig(PunishWarningConfig $punishWarningConfig): static
  2014.     {
  2015.         if ($this->punishWarningConfigs->removeElement($punishWarningConfig)) {
  2016.             // set the owning side to null (unless already changed)
  2017.             if ($punishWarningConfig->getSchool() === $this) {
  2018.                 $punishWarningConfig->setSchool(null);
  2019.             }
  2020.         }
  2021.         return $this;
  2022.     }
  2023.     /**
  2024.      * @return Collection<int, PunishBlameConfig>
  2025.      */
  2026.     public function getPunishBlameConfigs(): Collection
  2027.     {
  2028.         return $this->punishBlameConfigs;
  2029.     }
  2030.     public function addPunishBlameConfig(PunishBlameConfig $punishBlameConfig): static
  2031.     {
  2032.         if (!$this->punishBlameConfigs->contains($punishBlameConfig)) {
  2033.             $this->punishBlameConfigs->add($punishBlameConfig);
  2034.             $punishBlameConfig->setSchool($this);
  2035.         }
  2036.         return $this;
  2037.     }
  2038.     public function removePunishBlameConfig(PunishBlameConfig $punishBlameConfig): static
  2039.     {
  2040.         if ($this->punishBlameConfigs->removeElement($punishBlameConfig)) {
  2041.             // set the owning side to null (unless already changed)
  2042.             if ($punishBlameConfig->getSchool() === $this) {
  2043.                 $punishBlameConfig->setSchool(null);
  2044.             }
  2045.         }
  2046.         return $this;
  2047.     }
  2048.     /**
  2049.      * @return Collection<int, PunishExclusionConfig>
  2050.      */
  2051.     public function getPunishExclusionConfigs(): Collection
  2052.     {
  2053.         return $this->punishExclusionConfigs;
  2054.     }
  2055.     public function addPunishExclusionConfig(PunishExclusionConfig $punishExclusionConfig): static
  2056.     {
  2057.         if (!$this->punishExclusionConfigs->contains($punishExclusionConfig)) {
  2058.             $this->punishExclusionConfigs->add($punishExclusionConfig);
  2059.             $punishExclusionConfig->setSchool($this);
  2060.         }
  2061.         return $this;
  2062.     }
  2063.     public function removePunishExclusionConfig(PunishExclusionConfig $punishExclusionConfig): static
  2064.     {
  2065.         if ($this->punishExclusionConfigs->removeElement($punishExclusionConfig)) {
  2066.             // set the owning side to null (unless already changed)
  2067.             if ($punishExclusionConfig->getSchool() === $this) {
  2068.                 $punishExclusionConfig->setSchool(null);
  2069.             }
  2070.         }
  2071.         return $this;
  2072.     }
  2073.     public function getNameEn(): ?string
  2074.     {
  2075.         return $this->nameEn;
  2076.     }
  2077.     public function setNameEn(?string $nameEn): static
  2078.     {
  2079.         $this->nameEn $nameEn;
  2080.         return $this;
  2081.     }
  2082.     public function getRegion(): ?string
  2083.     {
  2084.         return $this->region;
  2085.     }
  2086.     public function setRegion(?string $region): static
  2087.     {
  2088.         $this->region $region;
  2089.         return $this;
  2090.     }
  2091.     public function getDepartment(): ?string
  2092.     {
  2093.         return $this->department;
  2094.     }
  2095.     public function setDepartment(?string $department): static
  2096.     {
  2097.         $this->department $department;
  2098.         return $this;
  2099.     }
  2100.     public function getArrondissement(): ?string
  2101.     {
  2102.         return $this->arrondissement;
  2103.     }
  2104.     public function setArrondissement(?string $arrondissement): static
  2105.     {
  2106.         $this->arrondissement $arrondissement;
  2107.         return $this;
  2108.     }
  2109.     /**
  2110.      * @return Collection<int, UserIphoneToken>
  2111.      */
  2112.     public function getUserIphoneTokens(): Collection
  2113.     {
  2114.         return $this->userIphoneTokens;
  2115.     }
  2116.     public function addUserIphoneToken(UserIphoneToken $userIphoneToken): static
  2117.     {
  2118.         if (!$this->userIphoneTokens->contains($userIphoneToken)) {
  2119.             $this->userIphoneTokens->add($userIphoneToken);
  2120.             $userIphoneToken->setSchool($this);
  2121.         }
  2122.         return $this;
  2123.     }
  2124.     public function removeUserIphoneToken(UserIphoneToken $userIphoneToken): static
  2125.     {
  2126.         if ($this->userIphoneTokens->removeElement($userIphoneToken)) {
  2127.             // set the owning side to null (unless already changed)
  2128.             if ($userIphoneToken->getSchool() === $this) {
  2129.                 $userIphoneToken->setSchool(null);
  2130.             }
  2131.         }
  2132.         return $this;
  2133.     }
  2134.     /**
  2135.      * @return Collection<int, UserAndroidToken>
  2136.      */
  2137.     public function getUserAndroidTokens(): Collection
  2138.     {
  2139.         return $this->userAndroidTokens;
  2140.     }
  2141.     public function addUserAndroidToken(UserAndroidToken $userAndroidToken): static
  2142.     {
  2143.         if (!$this->userAndroidTokens->contains($userAndroidToken)) {
  2144.             $this->userAndroidTokens->add($userAndroidToken);
  2145.             $userAndroidToken->setSchool($this);
  2146.         }
  2147.         return $this;
  2148.     }
  2149.     public function removeUserAndroidToken(UserAndroidToken $userAndroidToken): static
  2150.     {
  2151.         if ($this->userAndroidTokens->removeElement($userAndroidToken)) {
  2152.             // set the owning side to null (unless already changed)
  2153.             if ($userAndroidToken->getSchool() === $this) {
  2154.                 $userAndroidToken->setSchool(null);
  2155.             }
  2156.         }
  2157.         return $this;
  2158.     }
  2159.     /**
  2160.      * @return Collection<int, NewsCategory>
  2161.      */
  2162.     public function getNewsCategories(): Collection
  2163.     {
  2164.         return $this->newsCategories;
  2165.     }
  2166.     public function addNewsCategory(NewsCategory $newsCategory): static
  2167.     {
  2168.         if (!$this->newsCategories->contains($newsCategory)) {
  2169.             $this->newsCategories->add($newsCategory);
  2170.             $newsCategory->setSchool($this);
  2171.         }
  2172.         return $this;
  2173.     }
  2174.     public function removeNewsCategory(NewsCategory $newsCategory): static
  2175.     {
  2176.         if ($this->newsCategories->removeElement($newsCategory)) {
  2177.             // set the owning side to null (unless already changed)
  2178.             if ($newsCategory->getSchool() === $this) {
  2179.                 $newsCategory->setSchool(null);
  2180.             }
  2181.         }
  2182.         return $this;
  2183.     }
  2184.     /**
  2185.      * @return Collection<int, Blame>
  2186.      */
  2187.     public function getBlames(): Collection
  2188.     {
  2189.         return $this->blames;
  2190.     }
  2191.     public function addBlame(Blame $blame): static
  2192.     {
  2193.         if (!$this->blames->contains($blame)) {
  2194.             $this->blames->add($blame);
  2195.             $blame->setSchool($this);
  2196.         }
  2197.         return $this;
  2198.     }
  2199.     public function removeBlame(Blame $blame): static
  2200.     {
  2201.         if ($this->blames->removeElement($blame)) {
  2202.             // set the owning side to null (unless already changed)
  2203.             if ($blame->getSchool() === $this) {
  2204.                 $blame->setSchool(null);
  2205.             }
  2206.         }
  2207.         return $this;
  2208.     }
  2209.     /**
  2210.      * @return Collection<int, Warning>
  2211.      */
  2212.     public function getWarnings(): Collection
  2213.     {
  2214.         return $this->warnings;
  2215.     }
  2216.     public function addWarning(Warning $warning): static
  2217.     {
  2218.         if (!$this->warnings->contains($warning)) {
  2219.             $this->warnings->add($warning);
  2220.             $warning->setSchool($this);
  2221.         }
  2222.         return $this;
  2223.     }
  2224.     public function removeWarning(Warning $warning): static
  2225.     {
  2226.         if ($this->warnings->removeElement($warning)) {
  2227.             // set the owning side to null (unless already changed)
  2228.             if ($warning->getSchool() === $this) {
  2229.                 $warning->setSchool(null);
  2230.             }
  2231.         }
  2232.         return $this;
  2233.     }
  2234.     /**
  2235.      * @return Collection<int, Retained>
  2236.      */
  2237.     public function getRetaineds(): Collection
  2238.     {
  2239.         return $this->retaineds;
  2240.     }
  2241.     public function addRetained(Retained $retained): static
  2242.     {
  2243.         if (!$this->retaineds->contains($retained)) {
  2244.             $this->retaineds->add($retained);
  2245.             $retained->setSchool($this);
  2246.         }
  2247.         return $this;
  2248.     }
  2249.     public function removeRetained(Retained $retained): static
  2250.     {
  2251.         if ($this->retaineds->removeElement($retained)) {
  2252.             // set the owning side to null (unless already changed)
  2253.             if ($retained->getSchool() === $this) {
  2254.                 $retained->setSchool(null);
  2255.             }
  2256.         }
  2257.         return $this;
  2258.     }
  2259.     public function getCity(): ?string
  2260.     {
  2261.         return $this->city;
  2262.     }
  2263.     public function setCity(?string $city): static
  2264.     {
  2265.         $this->city $city;
  2266.         return $this;
  2267.     }
  2268.     public function getPhone1(): ?string
  2269.     {
  2270.         return $this->phone1;
  2271.     }
  2272.     public function setPhone1(?string $phone1): static
  2273.     {
  2274.         $this->phone1 $phone1;
  2275.         return $this;
  2276.     }
  2277.     public function getPhone2(): ?string
  2278.     {
  2279.         return $this->phone2;
  2280.     }
  2281.     public function setPhone2(?string $phone2): static
  2282.     {
  2283.         $this->phone2 $phone2;
  2284.         return $this;
  2285.     }
  2286.     public function getBox(): ?string
  2287.     {
  2288.         return $this->box;
  2289.     }
  2290.     public function setBox(?string $box): static
  2291.     {
  2292.         $this->box $box;
  2293.         return $this;
  2294.     }
  2295.     /**
  2296.      * @return Collection<int, HonnorTableLimitMoy>
  2297.      */
  2298.     public function getHonnorTableLimitMoys(): Collection
  2299.     {
  2300.         return $this->honnorTableLimitMoys;
  2301.     }
  2302.     public function addHonnorTableLimitMoy(HonnorTableLimitMoy $honnorTableLimitMoy): static
  2303.     {
  2304.         if (!$this->honnorTableLimitMoys->contains($honnorTableLimitMoy)) {
  2305.             $this->honnorTableLimitMoys->add($honnorTableLimitMoy);
  2306.             $honnorTableLimitMoy->setSchool($this);
  2307.         }
  2308.         return $this;
  2309.     }
  2310.     public function removeHonnorTableLimitMoy(HonnorTableLimitMoy $honnorTableLimitMoy): static
  2311.     {
  2312.         if ($this->honnorTableLimitMoys->removeElement($honnorTableLimitMoy)) {
  2313.             // set the owning side to null (unless already changed)
  2314.             if ($honnorTableLimitMoy->getSchool() === $this) {
  2315.                 $honnorTableLimitMoy->setSchool(null);
  2316.             }
  2317.         }
  2318.         return $this;
  2319.     }
  2320.     /**
  2321.      * @return Collection<int, SchoolYearInfos>
  2322.      */
  2323.     public function getSchoolYearInfos(): Collection
  2324.     {
  2325.         return $this->schoolYearInfos;
  2326.     }
  2327.     public function addSchoolYearInfo(SchoolYearInfos $schoolYearInfo): static
  2328.     {
  2329.         if (!$this->schoolYearInfos->contains($schoolYearInfo)) {
  2330.             $this->schoolYearInfos->add($schoolYearInfo);
  2331.             $schoolYearInfo->setSchool($this);
  2332.         }
  2333.         return $this;
  2334.     }
  2335.     public function removeSchoolYearInfo(SchoolYearInfos $schoolYearInfo): static
  2336.     {
  2337.         if ($this->schoolYearInfos->removeElement($schoolYearInfo)) {
  2338.             // set the owning side to null (unless already changed)
  2339.             if ($schoolYearInfo->getSchool() === $this) {
  2340.                 $schoolYearInfo->setSchool(null);
  2341.             }
  2342.         }
  2343.         return $this;
  2344.     }
  2345.     /**
  2346.      * @return Collection<int, CallNumber>
  2347.      */
  2348.     public function getCallNumbers(): Collection
  2349.     {
  2350.         return $this->callNumbers;
  2351.     }
  2352.     public function addCallNumber(CallNumber $callNumber): static
  2353.     {
  2354.         if (!$this->callNumbers->contains($callNumber)) {
  2355.             $this->callNumbers->add($callNumber);
  2356.             $callNumber->setSchool($this);
  2357.         }
  2358.         return $this;
  2359.     }
  2360.     public function removeCallNumber(CallNumber $callNumber): static
  2361.     {
  2362.         if ($this->callNumbers->removeElement($callNumber)) {
  2363.             // set the owning side to null (unless already changed)
  2364.             if ($callNumber->getSchool() === $this) {
  2365.                 $callNumber->setSchool(null);
  2366.             }
  2367.         }
  2368.         return $this;
  2369.     }
  2370.     /**
  2371.      * @return Collection<int, CallNumber>
  2372.      */
  2373.     public function getCallçnumber(): Collection
  2374.     {
  2375.         return $this->callçnumber;
  2376.     }
  2377.     
  2378. }