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