src/Entity/School.php line 14

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