Organization.php 64 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity\Organization;
  4. use ApiPlatform\Metadata\ApiResource;
  5. use ApiPlatform\Metadata\Get;
  6. use App\Entity\Access\Access;
  7. use App\Entity\Billing\BillingExportSetting;
  8. use App\Entity\Billing\BillingSetting;
  9. use App\Entity\Billing\BillSchedule;
  10. use App\Entity\Billing\FamilyQuotientModel;
  11. use App\Entity\Booking\Attendance;
  12. use App\Entity\Booking\AttendanceBookingReason;
  13. use App\Entity\Booking\Course;
  14. use App\Entity\Booking\EducationalProject;
  15. use App\Entity\Booking\Event;
  16. use App\Entity\Booking\Examen;
  17. use App\Entity\Booking\OrganizationHoliday;
  18. use App\Entity\Core\BankAccount;
  19. use App\Entity\Core\ContactPoint;
  20. use App\Entity\Core\File;
  21. use App\Entity\Core\Notification;
  22. use App\Entity\Core\Tagg;
  23. use App\Entity\Core\Tips;
  24. use App\Entity\Donor\Donor;
  25. use App\Entity\Education\CriteriaNotation;
  26. use App\Entity\Education\Cycle;
  27. use App\Entity\Education\EducationCategory;
  28. use App\Entity\Education\EducationNotationConfig;
  29. use App\Entity\Education\EducationTiming;
  30. use App\Entity\Education\PeriodNotation;
  31. use App\Entity\HelloAsso\HelloAsso;
  32. use App\Entity\Message\AbstractMessage;
  33. use App\Entity\Message\AbstractReport;
  34. use App\Entity\Message\Email;
  35. use App\Entity\Message\Mail;
  36. use App\Entity\Message\Sms;
  37. use App\Entity\Network\NetworkOrganization;
  38. use App\Entity\Organization\Traits\OrganizationComputedTraits;
  39. use App\Entity\Person\Commission;
  40. use App\Entity\Place\Place;
  41. use App\Entity\Product\Equipment;
  42. use App\Entity\Product\Intangible;
  43. use App\Entity\Reward\Reward;
  44. use App\Entity\Shop\Orders;
  45. use App\Entity\Traits\CreatedOnAndByTrait;
  46. use App\Enum\Organization\CategoryEnum;
  47. use App\Enum\Organization\LegalEnum;
  48. use App\Enum\Organization\OpcaEnum;
  49. use App\Enum\Organization\PrincipalTypeEnum;
  50. use App\Enum\Organization\SchoolCategoryEnum;
  51. use App\Enum\Organization\TypeEstablishmentDetailEnum;
  52. use App\Enum\Organization\TypeEstablishmentEnum;
  53. use App\Repository\Organization\OrganizationRepository;
  54. use App\State\Processor\Organization\OrganizationProcessor;
  55. use Doctrine\Common\Collections\ArrayCollection;
  56. use Doctrine\Common\Collections\Collection;
  57. use Doctrine\ORM\Mapping as ORM;
  58. use JetBrains\PhpStorm\Pure;
  59. // use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
  60. /**
  61. * Structure, organisation.
  62. *
  63. * Security :
  64. *
  65. * * @see \App\Doctrine\Organization\CurrentOrganizationExtension
  66. */
  67. #[ApiResource(
  68. operations: [
  69. new Get(security: 'object.getId() == user.getOrganization().getId()'),
  70. ],
  71. processor: OrganizationProcessor::class,
  72. )]
  73. // #[Auditable]
  74. #[ORM\Entity(repositoryClass: OrganizationRepository::class)]
  75. class Organization
  76. {
  77. use CreatedOnAndByTrait;
  78. use OrganizationComputedTraits;
  79. #[ORM\Id]
  80. #[ORM\Column]
  81. #[ORM\GeneratedValue]
  82. private ?int $id = null;
  83. #[ORM\Column(length: 128, nullable: false)]
  84. public string $name;
  85. #[ORM\Column(length: 128)]
  86. private string $identifier;
  87. #[ORM\Column(length: 50, nullable: true, enumType: LegalEnum::class)]
  88. private ?LegalEnum $legalStatus = null;
  89. #[ORM\Column(length: 255, nullable: false, enumType: PrincipalTypeEnum::class)]
  90. private PrincipalTypeEnum $principalType;
  91. #[ORM\OneToOne(mappedBy: 'organization', cascade: ['persist', 'remove'])]
  92. private ?Settings $settings = null;
  93. /** @var Collection<int, Access> */
  94. #[ORM\OneToMany(targetEntity: Access::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  95. private Collection $accesses;
  96. /** @var Collection<int, NetworkOrganization> */
  97. #[ORM\OneToMany(targetEntity: NetworkOrganization::class, mappedBy: 'organization', cascade: ['persist', 'remove'], orphanRemoval: true)]
  98. private Collection $networkOrganizations;
  99. /** @var Collection<int, NetworkOrganization> */
  100. #[ORM\OneToMany(targetEntity: NetworkOrganization::class, mappedBy: 'parent', cascade: ['persist', 'remove'], orphanRemoval: true)]
  101. private Collection $networkOrganizationChildren;
  102. /** @var Collection<int, EducationNotationConfig> */
  103. #[ORM\OneToMany(targetEntity: EducationNotationConfig::class, mappedBy: 'organization', cascade: ['persist', 'remove'], orphanRemoval: true)]
  104. private Collection $educationNotationConfigs;
  105. #[ORM\OneToOne(targetEntity: Parameters::class, inversedBy: 'organization', cascade: ['persist'])]
  106. #[ORM\JoinColumn(nullable: false)]
  107. private Parameters $parameters;
  108. #[ORM\OneToOne(mappedBy: 'organization', cascade: ['persist', 'remove'], orphanRemoval: true)]
  109. private ?BillingSetting $billingSetting = null;
  110. #[ORM\Column(type: 'text', nullable: true)]
  111. private ?string $description = null;
  112. // TODO: utile ce champs? ou c'est juste un doublon du champs 'createDate'?
  113. #[ORM\Column(type: 'date', nullable: true)]
  114. private ?\DateTimeInterface $creationDate = null;
  115. #[ORM\Column(type: 'date', nullable: true)]
  116. private ?\DateTimeInterface $declarationDate = null;
  117. #[ORM\Column(length: 14, nullable: true)]
  118. private ?string $siretNumber = null;
  119. #[ORM\Column(length: 10, nullable: true)]
  120. private ?string $waldecNumber = null;
  121. #[ORM\Column(length: 255, nullable: true)]
  122. private ?string $volumeAndFolioNumber = null;
  123. #[ORM\Column(length: 5, nullable: true)]
  124. private ?string $apeNumber = null;
  125. #[ORM\Column(length: 50, nullable: true)]
  126. private ?string $tvaNumber = null;
  127. #[ORM\Column(length: 40, nullable: true)]
  128. private ?string $otherType = null;
  129. #[ORM\Column(length: 80, nullable: true)]
  130. private ?string $acronym = null;
  131. #[ORM\Column(length: 255, nullable: true)]
  132. private ?string $facebook = null;
  133. #[ORM\Column(length: 255, nullable: true)]
  134. private ?string $twitter = null;
  135. #[ORM\Column(length: 255, nullable: true)]
  136. private ?string $youtube = null;
  137. #[ORM\Column(length: 255, nullable: true)]
  138. private ?string $instagram = null;
  139. #[ORM\Column(length: 35, nullable: true)]
  140. private ?string $collectiveAgreement = null;
  141. #[ORM\Column(length: 50, nullable: true, enumType: OpcaEnum::class)]
  142. private ?OpcaEnum $opca = null;
  143. #[ORM\Column(length: 35, nullable: true)]
  144. private ?string $icomNumber = null;
  145. #[ORM\Column(length: 35, nullable: true)]
  146. private ?string $urssafNumber = null;
  147. #[ORM\Column(length: 20, nullable: true)]
  148. private ?string $youngApproval = null;
  149. #[ORM\Column(length: 20, nullable: true)]
  150. private ?string $trainingApproval = null;
  151. #[ORM\Column(length: 50, nullable: true)]
  152. private ?string $otherApproval = null;
  153. #[ORM\Column(length: 35, nullable: true)]
  154. private ?string $prefectureName = null;
  155. #[ORM\Column(length: 20, nullable: true)]
  156. private ?string $prefectureNumber = null;
  157. #[ORM\Column(length: 50, nullable: true, enumType: CategoryEnum::class)]
  158. private ?CategoryEnum $category = null;
  159. #[ORM\Column(length: 50, nullable: true, enumType: SchoolCategoryEnum::class)]
  160. private ?SchoolCategoryEnum $schoolCategory = null;
  161. #[ORM\Column(length: 50, nullable: true, enumType: TypeEstablishmentEnum::class)]
  162. private ?TypeEstablishmentEnum $typeEstablishment = null;
  163. #[ORM\Column(length: 50, nullable: true, enumType: TypeEstablishmentDetailEnum::class)]
  164. private ?TypeEstablishmentDetailEnum $typeEstablishmentDetail = null;
  165. #[ORM\Column(nullable: true)]
  166. private ?float $budget = null;
  167. #[ORM\Column(nullable: true)]
  168. private ?bool $isPedagogicIsPrincipalActivity = null;
  169. #[ORM\Column(nullable: true)]
  170. private ?float $pedagogicBudget = null;
  171. #[ORM\Column(nullable: true)]
  172. private ?bool $isPerformanceContractor = null;
  173. #[ORM\Column(length: 20, nullable: true)]
  174. private ?string $ffecApproval = null;
  175. #[ORM\Column]
  176. private bool $portailVisibility = true;
  177. #[ORM\Column(nullable: true)]
  178. private ?int $cmsId = null;
  179. #[ORM\ManyToOne(inversedBy: 'organizationLogos')]
  180. #[ORM\JoinColumn(referencedColumnName: 'id', nullable: true, onDelete: 'SET NULL')]
  181. private ?File $logo = null;
  182. #[ORM\ManyToOne(inversedBy: 'organizationImages')]
  183. #[ORM\JoinColumn(referencedColumnName: 'id', nullable: true, onDelete: 'SET NULL')]
  184. private ?File $image = null;
  185. /** @var Collection<int, TypeOfPractice> */
  186. #[ORM\ManyToMany(targetEntity: TypeOfPractice::class, mappedBy: 'organizations')]
  187. private Collection $typeOfPractices;
  188. #[ORM\Column(nullable: true)]
  189. private ?string $otherPractice = null;
  190. /**
  191. * orphanRemoval: on ne conserve pas un contact point qui n'est plus lié à aucune organisation ou person.
  192. *
  193. * @var Collection<int, ContactPoint>
  194. */
  195. #[ORM\ManyToMany(targetEntity: ContactPoint::class, mappedBy: 'organization', cascade: ['persist'], orphanRemoval: true)]
  196. #[ORM\OrderBy(['id' => 'ASC'])]
  197. private Collection $contactPoints;
  198. /**
  199. * orphanRemoval: on ne conserve pas un contact point qui n'est plus lié à aucune organisation ou person.
  200. *
  201. * @var Collection<int, BankAccount>
  202. */
  203. #[ORM\ManyToMany(targetEntity: BankAccount::class, inversedBy: 'organization', cascade: ['persist'], orphanRemoval: true)]
  204. #[ORM\JoinColumn(name: 'organization_id', referencedColumnName: 'id', unique: true)]
  205. #[ORM\InverseJoinColumn(name: 'bankAccount_id', referencedColumnName: 'id')]
  206. private Collection $bankAccounts;
  207. /** @var Collection<int, OrganizationAddressPostal> */
  208. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: OrganizationAddressPostal::class, cascade: ['persist', 'remove'])]
  209. #[ORM\OrderBy(['id' => 'ASC'])]
  210. private Collection $organizationAddressPostals;
  211. /** @var Collection<int, OrganizationLicence> */
  212. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: OrganizationLicence::class, cascade: ['persist', 'remove'])]
  213. private Collection $organizationLicences;
  214. /** @var Collection<int, OrganizationArticle> */
  215. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: OrganizationArticle::class, cascade: ['persist', 'remove'])]
  216. private Collection $organizationArticles;
  217. /** @var Collection<int, Cycle> */
  218. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Cycle::class, cascade: ['persist', 'remove'])]
  219. private Collection $cycles;
  220. /** @var Collection<int, EducationTiming> */
  221. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: EducationTiming::class, cascade: ['persist', 'remove'])]
  222. private Collection $educationTimings;
  223. /** @var Collection<int, Subdomain> */
  224. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Subdomain::class, cascade: ['persist', 'remove'])]
  225. private Collection $subdomains;
  226. #[ORM\ManyToOne(inversedBy: 'organizationContacts')]
  227. #[ORM\JoinColumn(referencedColumnName: 'id', nullable: true, onDelete: 'SET NULL')]
  228. private ?Access $contactPerson;
  229. /** @var Collection<int, OrganizationHoliday> */
  230. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: OrganizationHoliday::class, cascade: ['persist', 'remove'])]
  231. private Collection $holidays;
  232. /** @var Collection<int, Course> */
  233. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Course::class, cascade: ['persist', 'remove'])]
  234. private Collection $courses;
  235. /** @var Collection<int, EducationalProject> */
  236. #[ORM\OneToMany(targetEntity: EducationalProject::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  237. private Collection $educationalProjects;
  238. /** @var Collection<int, Event> */
  239. #[ORM\OneToMany(targetEntity: Event::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  240. private Collection $events;
  241. /** @var Collection<int, Examen> */
  242. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Examen::class, cascade: ['persist', 'remove'])]
  243. private Collection $examens;
  244. /** @var Collection<int, CriteriaNotation> */
  245. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: CriteriaNotation::class, cascade: ['persist', 'remove'])]
  246. private Collection $critereNotations;
  247. /** @var Collection<int, EducationCategory> */
  248. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: EducationCategory::class, cascade: ['persist', 'remove'])]
  249. private Collection $educationCategories;
  250. /** @var Collection<int, PeriodNotation> */
  251. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: PeriodNotation::class, cascade: ['persist', 'remove'])]
  252. private Collection $periodNotations;
  253. /** @var Collection<int, File> */
  254. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: File::class, cascade: ['persist', 'remove'])]
  255. private Collection $files;
  256. /** @var Collection<int, Notification> */
  257. #[ORM\OneToMany(mappedBy: 'recipientOrganization', targetEntity: Notification::class, cascade: ['persist', 'remove'])]
  258. private Collection $notifications;
  259. /** @var Collection<int, Email> */
  260. #[ORM\OneToMany(targetEntity: Email::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  261. private Collection $emails;
  262. /** @var Collection<int, Mail> */
  263. #[ORM\OneToMany(targetEntity: Mail::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  264. private Collection $mails;
  265. /** @var Collection<int, Sms> */
  266. #[ORM\OneToMany(targetEntity: Sms::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  267. private Collection $sms;
  268. /** @var Collection<int, Activity> */
  269. #[ORM\OneToMany(targetEntity: Activity::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  270. private Collection $activities;
  271. /** @var Collection<int, Jury> */
  272. #[ORM\OneToMany(targetEntity: Jury::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  273. private Collection $juries;
  274. /** @var Collection<int, Commission> */
  275. #[ORM\OneToMany(targetEntity: Commission::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  276. private Collection $commissions;
  277. /** @var Collection<int, Place> */
  278. #[ORM\OneToMany(targetEntity: Place::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  279. private Collection $places;
  280. /** @var Collection<int, Attendance> */
  281. #[ORM\OneToMany(targetEntity: Attendance::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  282. private Collection $attendances;
  283. /** @var Collection<int, Equipment> */
  284. #[ORM\OneToMany(targetEntity: Equipment::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  285. private Collection $equipments;
  286. /** @var Collection<int, Intangible> */
  287. #[ORM\OneToMany(targetEntity: Intangible::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  288. private Collection $intangibles;
  289. /** @var Collection<int, Donor> */
  290. #[ORM\OneToMany(targetEntity: Donor::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  291. private Collection $donors;
  292. /** @var Collection<int, Reward> */
  293. #[ORM\OneToMany(targetEntity: Reward::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  294. private Collection $rewards;
  295. // #[ORM\OneToOne()]
  296. // private OnlineRegistrationSettings $onlineRegistrationSettings;
  297. /** @var Collection<int, Tagg> */
  298. #[ORM\ManyToMany(targetEntity: Tagg::class, inversedBy: 'organizations', cascade: ['persist'])]
  299. #[ORM\JoinTable(name: 'tag_organization')]
  300. #[ORM\JoinColumn(name: 'organization_id', referencedColumnName: 'id')]
  301. #[ORM\InverseJoinColumn(name: 'tag_id', referencedColumnName: 'id')]
  302. private Collection $tags;
  303. /** @var Collection<int, NetworkOrganization> */
  304. #[ORM\OneToMany(targetEntity: NetworkOrganization::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  305. protected Collection $network;
  306. /** @var Collection<int, NetworkOrganization> */
  307. #[ORM\OneToMany(targetEntity: NetworkOrganization::class, mappedBy: 'parent', cascade: ['persist', 'remove'])]
  308. protected Collection $networkChild;
  309. #[ORM\OneToOne(targetEntity: BillingExportSetting::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  310. protected ?BillingExportSetting $billingExportSetting;
  311. /** @var Collection<int, Access> */
  312. #[ORM\OneToMany(targetEntity: Access::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  313. protected Collection $access;
  314. /** @var Collection<int, AbstractMessage> */
  315. #[ORM\OneToMany(targetEntity: AbstractMessage::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  316. protected Collection $messages;
  317. #[ORM\OneToOne(targetEntity: OnlineRegistrationSettings::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  318. protected ?OnlineRegistrationSettings $onlineRegistrationSettings;
  319. #[ORM\OneToOne(targetEntity: HelloAsso::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  320. protected ?HelloAsso $helloAsso = null;
  321. /** @var Collection<int, CotisationByYear> */
  322. #[ORM\OneToMany(targetEntity: CotisationByYear::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  323. protected Collection $cotisationByYears;
  324. /** @var Collection<int, AttendanceBookingReason> */
  325. #[ORM\OneToMany(targetEntity: AttendanceBookingReason::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  326. protected Collection $attendanceBookingReasons;
  327. /** @var Collection<int, Cycle> */
  328. #[ORM\OneToMany(targetEntity: Cycle::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  329. protected Collection $educationCurriculumPacks;
  330. /** @var Collection<int, FamilyQuotientModel> */
  331. #[ORM\OneToMany(targetEntity: FamilyQuotientModel::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  332. protected Collection $familyQuotientModels;
  333. /** @var Collection<int, BillSchedule> */
  334. #[ORM\OneToMany(targetEntity: BillSchedule::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  335. protected Collection $billSchedules;
  336. /** @var Collection<int, AbstractReport> */
  337. #[ORM\OneToMany(targetEntity: AbstractReport::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  338. private Collection $reports;
  339. /** @var Collection<int, Orders> */
  340. #[ORM\OneToMany(targetEntity: Orders::class, mappedBy: 'organization', cascade: [], orphanRemoval: true)]
  341. protected Collection $orders;
  342. /**
  343. * orphanRemoval: on ne conserve pas un tips qui n'est plus lié à aucune organisation ou access.
  344. *
  345. * @var Collection<int, Tips>
  346. */
  347. #[ORM\ManyToMany(targetEntity: Tips::class, inversedBy: 'organizations', cascade: ['persist'], orphanRemoval: false)]
  348. #[ORM\JoinTable(name: 'organization_tips')]
  349. #[ORM\JoinColumn(name: 'organization_id')]
  350. protected Collection $tips;
  351. #[Pure]
  352. public function __construct()
  353. {
  354. $this->accesses = new ArrayCollection();
  355. $this->networkOrganizations = new ArrayCollection();
  356. $this->networkOrganizationChildren = new ArrayCollection();
  357. $this->typeOfPractices = new ArrayCollection();
  358. $this->contactPoints = new ArrayCollection();
  359. $this->bankAccounts = new ArrayCollection();
  360. $this->organizationAddressPostals = new ArrayCollection();
  361. $this->organizationLicences = new ArrayCollection();
  362. $this->organizationArticles = new ArrayCollection();
  363. $this->cycles = new ArrayCollection();
  364. $this->educationTimings = new ArrayCollection();
  365. $this->educationNotationConfigs = new ArrayCollection();
  366. $this->subdomains = new ArrayCollection();
  367. $this->holidays = new ArrayCollection();
  368. $this->courses = new ArrayCollection();
  369. $this->educationalProjects = new ArrayCollection();
  370. $this->events = new ArrayCollection();
  371. $this->examens = new ArrayCollection();
  372. $this->critereNotations = new ArrayCollection();
  373. $this->educationCategories = new ArrayCollection();
  374. $this->periodNotations = new ArrayCollection();
  375. $this->files = new ArrayCollection();
  376. $this->notifications = new ArrayCollection();
  377. $this->emails = new ArrayCollection();
  378. $this->mails = new ArrayCollection();
  379. $this->sms = new ArrayCollection();
  380. $this->activities = new ArrayCollection();
  381. $this->juries = new ArrayCollection();
  382. $this->commissions = new ArrayCollection();
  383. $this->places = new ArrayCollection();
  384. $this->attendances = new ArrayCollection();
  385. $this->equipments = new ArrayCollection();
  386. $this->intangibles = new ArrayCollection();
  387. $this->donors = new ArrayCollection();
  388. $this->tags = new ArrayCollection();
  389. $this->rewards = new ArrayCollection();
  390. $this->network = new ArrayCollection();
  391. $this->networkChild = new ArrayCollection();
  392. $this->access = new ArrayCollection();
  393. $this->messages = new ArrayCollection();
  394. $this->cotisationByYears = new ArrayCollection();
  395. $this->attendanceBookingReasons = new ArrayCollection();
  396. $this->educationCurriculumPacks = new ArrayCollection();
  397. $this->familyQuotientModels = new ArrayCollection();
  398. $this->billSchedules = new ArrayCollection();
  399. $this->orders = new ArrayCollection();
  400. $this->tips = new ArrayCollection();
  401. }
  402. public function getId(): ?int
  403. {
  404. return $this->id;
  405. }
  406. public function getName(): string
  407. {
  408. return $this->name;
  409. }
  410. public function setName(string $name): self
  411. {
  412. $this->name = $name;
  413. return $this;
  414. }
  415. public function getIdentifier(): string
  416. {
  417. return $this->identifier;
  418. }
  419. public function setIdentifier(string $identifier): self
  420. {
  421. $this->identifier = $identifier;
  422. return $this;
  423. }
  424. public function getLegalStatus(): ?LegalEnum
  425. {
  426. return $this->legalStatus;
  427. }
  428. public function setLegalStatus(?LegalEnum $legalStatus): self
  429. {
  430. $this->legalStatus = $legalStatus;
  431. return $this;
  432. }
  433. public function getPrincipalType(): ?PrincipalTypeEnum
  434. {
  435. return $this->principalType;
  436. }
  437. public function setPrincipalType(?PrincipalTypeEnum $principalType): self
  438. {
  439. $this->principalType = $principalType;
  440. return $this;
  441. }
  442. public function getSettings(): Settings
  443. {
  444. return $this->settings;
  445. }
  446. public function setSettings(Settings $settings): self
  447. {
  448. $this->settings = $settings;
  449. // set the owning side of the relation
  450. $settings->setOrganization($this);
  451. return $this;
  452. }
  453. public function getAccesses(): Collection
  454. {
  455. return $this->accesses;
  456. }
  457. public function addAccess(Access $access): self
  458. {
  459. if (!$this->access->contains($access)) {
  460. $this->access[] = $access;
  461. $access->setOrganization($this);
  462. }
  463. return $this;
  464. }
  465. public function removeAccess(Access $access): self
  466. {
  467. if ($this->access->removeElement($access)) {
  468. $access->setOrganization(null);
  469. }
  470. return $this;
  471. }
  472. public function getNetworkOrganizations(): Collection
  473. {
  474. return $this->networkOrganizations;
  475. }
  476. public function addNetworkOrganization(NetworkOrganization $networkOrganization): self
  477. {
  478. if (!$this->networkOrganizations->contains($networkOrganization)) {
  479. $this->networkOrganizations[] = $networkOrganization;
  480. $networkOrganization->setOrganization($this);
  481. }
  482. return $this;
  483. }
  484. public function removeNetworkOrganization(NetworkOrganization $networkOrganization): self
  485. {
  486. if ($this->networkOrganizations->removeElement($networkOrganization)) {
  487. // set the owning side to null (unless already changed)
  488. if ($networkOrganization->getOrganization() === $this) {
  489. $networkOrganization->setOrganization(null);
  490. }
  491. }
  492. return $this;
  493. }
  494. public function getNetworkOrganizationChildren(): Collection
  495. {
  496. return $this->networkOrganizationChildren;
  497. }
  498. public function addNetworkOrganizationChild(NetworkOrganization $networkOrganizationChild): self
  499. {
  500. if (!$this->networkOrganizationChildren->contains($networkOrganizationChild)) {
  501. $this->networkOrganizationChildren[] = $networkOrganizationChild;
  502. $networkOrganizationChild->setParent($this);
  503. }
  504. return $this;
  505. }
  506. public function removeNetworkOrganizationChild(NetworkOrganization $networkOrganizationChild): self
  507. {
  508. if ($this->networkOrganizationChildren->removeElement($networkOrganizationChild)) {
  509. // set the owning side to null (unless already changed)
  510. if ($networkOrganizationChild->getParent() === $this) {
  511. $networkOrganizationChild->setParent(null);
  512. }
  513. }
  514. return $this;
  515. }
  516. public function getParameters(): Parameters
  517. {
  518. return $this->parameters;
  519. }
  520. public function setParameters(Parameters $parameters): self
  521. {
  522. $this->parameters = $parameters;
  523. return $this;
  524. }
  525. public function getLogo(): ?File
  526. {
  527. return $this->logo;
  528. }
  529. public function setLogo(?File $logo): void
  530. {
  531. $this->logo = $logo;
  532. }
  533. public function getBillingSetting(): BillingSetting
  534. {
  535. return $this->billingSetting;
  536. }
  537. public function setBillingSetting(BillingSetting $billingSetting): self
  538. {
  539. $this->billingSetting = $billingSetting;
  540. return $this;
  541. }
  542. public function getDescription(): ?string
  543. {
  544. return $this->description;
  545. }
  546. public function setDescription(?string $description): self
  547. {
  548. $this->description = $description;
  549. return $this;
  550. }
  551. public function getCreationDate(): ?\DateTimeInterface
  552. {
  553. return $this->creationDate;
  554. }
  555. public function setCreationDate(?\DateTimeInterface $creationDate): self
  556. {
  557. $this->creationDate = $creationDate;
  558. return $this;
  559. }
  560. public function getDeclarationDate(): ?\DateTimeInterface
  561. {
  562. return $this->declarationDate;
  563. }
  564. public function setDeclarationDate(?\DateTimeInterface $declarationDate): self
  565. {
  566. $this->declarationDate = $declarationDate;
  567. return $this;
  568. }
  569. public function getSiretNumber(): ?string
  570. {
  571. return $this->siretNumber;
  572. }
  573. public function setSiretNumber(?string $siretNumber): self
  574. {
  575. $this->siretNumber = $siretNumber;
  576. return $this;
  577. }
  578. public function getWaldecNumber(): ?string
  579. {
  580. return $this->waldecNumber;
  581. }
  582. public function setWaldecNumber(?string $waldecNumber): self
  583. {
  584. $this->waldecNumber = $waldecNumber;
  585. return $this;
  586. }
  587. public function getVolumeAndFolioNumber(): ?string
  588. {
  589. return $this->volumeAndFolioNumber;
  590. }
  591. public function setVolumeAndFolioNumber(?string $volumeAndFolioNumber): self
  592. {
  593. $this->volumeAndFolioNumber = $volumeAndFolioNumber;
  594. return $this;
  595. }
  596. public function getApeNumber(): ?string
  597. {
  598. return $this->apeNumber;
  599. }
  600. public function setApeNumber(?string $apeNumber): self
  601. {
  602. $this->apeNumber = $apeNumber;
  603. return $this;
  604. }
  605. public function getTvaNumber(): ?string
  606. {
  607. return $this->tvaNumber;
  608. }
  609. public function setTvaNumber(?string $tvaNumber): self
  610. {
  611. $this->tvaNumber = $tvaNumber;
  612. return $this;
  613. }
  614. public function getOtherType(): ?string
  615. {
  616. return $this->otherType;
  617. }
  618. public function setOtherType(?string $otherType): self
  619. {
  620. $this->otherType = $otherType;
  621. return $this;
  622. }
  623. public function getAcronym(): ?string
  624. {
  625. return $this->acronym;
  626. }
  627. public function setAcronym(?string $acronym): self
  628. {
  629. $this->acronym = $acronym;
  630. return $this;
  631. }
  632. public function getFacebook(): ?string
  633. {
  634. return $this->facebook;
  635. }
  636. public function setFacebook(?string $facebook): self
  637. {
  638. $this->facebook = $facebook;
  639. return $this;
  640. }
  641. public function getTwitter(): ?string
  642. {
  643. return $this->twitter;
  644. }
  645. public function setTwitter(?string $twitter): self
  646. {
  647. $this->twitter = $twitter;
  648. return $this;
  649. }
  650. public function getYoutube(): ?string
  651. {
  652. return $this->youtube;
  653. }
  654. public function setYoutube(?string $youtube): self
  655. {
  656. $this->youtube = $youtube;
  657. return $this;
  658. }
  659. public function getInstagram(): ?string
  660. {
  661. return $this->instagram;
  662. }
  663. public function setInstagram(?string $instagram): self
  664. {
  665. $this->instagram = $instagram;
  666. return $this;
  667. }
  668. public function getCollectiveAgreement(): ?string
  669. {
  670. return $this->collectiveAgreement;
  671. }
  672. public function setCollectiveAgreement(?string $collectiveAgreement): self
  673. {
  674. $this->collectiveAgreement = $collectiveAgreement;
  675. return $this;
  676. }
  677. public function getOpca(): ?OpcaEnum
  678. {
  679. return $this->opca;
  680. }
  681. public function setOpca(?OpcaEnum $opca): self
  682. {
  683. $this->opca = $opca;
  684. return $this;
  685. }
  686. public function getIcomNumber(): ?string
  687. {
  688. return $this->icomNumber;
  689. }
  690. public function setIcomNumber(?string $icomNumber): self
  691. {
  692. $this->icomNumber = $icomNumber;
  693. return $this;
  694. }
  695. public function getUrssafNumber(): ?string
  696. {
  697. return $this->urssafNumber;
  698. }
  699. public function setUrssafNumber(?string $urssafNumber): self
  700. {
  701. $this->urssafNumber = $urssafNumber;
  702. return $this;
  703. }
  704. public function getYoungApproval(): ?string
  705. {
  706. return $this->youngApproval;
  707. }
  708. public function setYoungApproval(?string $youngApproval): self
  709. {
  710. $this->youngApproval = $youngApproval;
  711. return $this;
  712. }
  713. public function getTrainingApproval(): ?string
  714. {
  715. return $this->trainingApproval;
  716. }
  717. public function setTrainingApproval(?string $trainingApproval): self
  718. {
  719. $this->trainingApproval = $trainingApproval;
  720. return $this;
  721. }
  722. public function getOtherApproval(): ?string
  723. {
  724. return $this->otherApproval;
  725. }
  726. public function setOtherApproval(?string $otherApproval): self
  727. {
  728. $this->otherApproval = $otherApproval;
  729. return $this;
  730. }
  731. public function getPrefectureName(): ?string
  732. {
  733. return $this->prefectureName;
  734. }
  735. public function setPrefectureName(?string $prefectureName): self
  736. {
  737. $this->prefectureName = $prefectureName;
  738. return $this;
  739. }
  740. public function getPrefectureNumber(): ?string
  741. {
  742. return $this->prefectureNumber;
  743. }
  744. public function setPrefectureNumber(?string $prefectureNumber): self
  745. {
  746. $this->prefectureNumber = $prefectureNumber;
  747. return $this;
  748. }
  749. public function getCategory(): ?CategoryEnum
  750. {
  751. return $this->category;
  752. }
  753. public function setCategory(?CategoryEnum $category): self
  754. {
  755. $this->category = $category;
  756. return $this;
  757. }
  758. public function getSchoolCategory(): ?SchoolCategoryEnum
  759. {
  760. return $this->schoolCategory;
  761. }
  762. public function setSchoolCategory(?SchoolCategoryEnum $schoolCategory): self
  763. {
  764. $this->schoolCategory = $schoolCategory;
  765. return $this;
  766. }
  767. public function getTypeEstablishment(): ?TypeEstablishmentEnum
  768. {
  769. return $this->typeEstablishment;
  770. }
  771. public function setTypeEstablishment(?TypeEstablishmentEnum $typeEstablishment): self
  772. {
  773. $this->typeEstablishment = $typeEstablishment;
  774. return $this;
  775. }
  776. public function getTypeEstablishmentDetail(): ?TypeEstablishmentDetailEnum
  777. {
  778. return $this->typeEstablishmentDetail;
  779. }
  780. public function setTypeEstablishmentDetail(?TypeEstablishmentDetailEnum $typeEstablishmentDetail): self
  781. {
  782. $this->typeEstablishmentDetail = $typeEstablishmentDetail;
  783. return $this;
  784. }
  785. public function getBudget(): ?float
  786. {
  787. return $this->budget;
  788. }
  789. public function setBudget(?float $budget): self
  790. {
  791. $this->budget = $budget;
  792. return $this;
  793. }
  794. public function getIsPedagogicIsPrincipalActivity(): ?bool
  795. {
  796. return $this->isPedagogicIsPrincipalActivity;
  797. }
  798. public function setIsPedagogicIsPrincipalActivity(?bool $isPedagogicIsPrincipalActivity): self
  799. {
  800. $this->isPedagogicIsPrincipalActivity = $isPedagogicIsPrincipalActivity;
  801. return $this;
  802. }
  803. public function getPedagogicBudget(): ?float
  804. {
  805. return $this->pedagogicBudget;
  806. }
  807. public function setPedagogicBudget(?float $pedagogicBudget): self
  808. {
  809. $this->pedagogicBudget = $pedagogicBudget;
  810. return $this;
  811. }
  812. public function getIsPerformanceContractor(): ?bool
  813. {
  814. return $this->isPerformanceContractor;
  815. }
  816. public function setIsPerformanceContractor(?bool $isPerformanceContractor): self
  817. {
  818. $this->isPerformanceContractor = $isPerformanceContractor;
  819. return $this;
  820. }
  821. public function getFfecApproval(): ?string
  822. {
  823. return $this->ffecApproval;
  824. }
  825. public function setFfecApproval(?string $ffecApproval): self
  826. {
  827. $this->ffecApproval = $ffecApproval;
  828. return $this;
  829. }
  830. public function getPortailVisibility(): bool
  831. {
  832. return $this->portailVisibility;
  833. }
  834. public function setPortailVisibility(bool $portailVisibility): self
  835. {
  836. $this->portailVisibility = $portailVisibility;
  837. return $this;
  838. }
  839. public function getCmsId(): ?int
  840. {
  841. return $this->cmsId;
  842. }
  843. public function setCmsId(?int $cmsId): self
  844. {
  845. $this->cmsId = $cmsId;
  846. return $this;
  847. }
  848. public function setImage(?File $image): self
  849. {
  850. $this->image = $image;
  851. return $this;
  852. }
  853. public function getImage(): ?File
  854. {
  855. return $this->image;
  856. }
  857. public function getTypeOfPractices(): Collection
  858. {
  859. return $this->typeOfPractices;
  860. }
  861. public function addTypeOfPractice(TypeOfPractice $typeOfPractice): self
  862. {
  863. if (!$this->typeOfPractices->contains($typeOfPractice)) {
  864. $this->typeOfPractices[] = $typeOfPractice;
  865. $typeOfPractice->addOrganization($this);
  866. }
  867. return $this;
  868. }
  869. public function removeTypeOfPractice(TypeOfPractice $typeOfPractice): self
  870. {
  871. if ($this->typeOfPractices->removeElement($typeOfPractice)) {
  872. $typeOfPractice->removeOrganization($this);
  873. }
  874. return $this;
  875. }
  876. public function getOtherPractice(): ?string
  877. {
  878. return $this->otherPractice;
  879. }
  880. public function setOtherPractice(?string $otherPractice): self
  881. {
  882. $this->otherPractice = $otherPractice;
  883. return $this;
  884. }
  885. public function getContactPoints(): Collection
  886. {
  887. return $this->contactPoints;
  888. }
  889. public function addContactPoint(ContactPoint $contactPoint): self
  890. {
  891. if (!$this->contactPoints->contains($contactPoint)) {
  892. $this->contactPoints[] = $contactPoint;
  893. $contactPoint->addOrganization($this);
  894. }
  895. return $this;
  896. }
  897. public function removeContactPoint(ContactPoint $contactPoint): self
  898. {
  899. if ($this->contactPoints->removeElement($contactPoint)) {
  900. $contactPoint->removeOrganization($this);
  901. }
  902. return $this;
  903. }
  904. public function getBankAccounts(): Collection
  905. {
  906. return $this->bankAccounts;
  907. }
  908. public function addBankAccount(BankAccount $bankAccount): self
  909. {
  910. if (!$this->bankAccounts->contains($bankAccount)) {
  911. $this->bankAccounts[] = $bankAccount;
  912. $bankAccount->addOrganization($this);
  913. }
  914. return $this;
  915. }
  916. public function removeBankAccount(BankAccount $bankAccount): self
  917. {
  918. if ($this->bankAccounts->removeElement($bankAccount)) {
  919. $bankAccount->removeOrganization($this);
  920. }
  921. return $this;
  922. }
  923. public function getOrganizationAddressPostals(): Collection
  924. {
  925. return $this->organizationAddressPostals;
  926. }
  927. public function addOrganizationAddressPostal(OrganizationAddressPostal $organizationAddressPostal): self
  928. {
  929. if (!$this->organizationAddressPostals->contains($organizationAddressPostal)) {
  930. $this->organizationAddressPostals[] = $organizationAddressPostal;
  931. $organizationAddressPostal->setOrganization($this);
  932. }
  933. return $this;
  934. }
  935. public function removeOrganizationAddressPostal(OrganizationAddressPostal $organizationAddressPostal): self
  936. {
  937. if ($this->organizationAddressPostals->removeElement($organizationAddressPostal)) {
  938. // set the owning side to null (unless already changed)
  939. if ($organizationAddressPostal->getOrganization() === $this) {
  940. $organizationAddressPostal->setOrganization(null);
  941. }
  942. }
  943. return $this;
  944. }
  945. public function getOrganizationLicences(): Collection
  946. {
  947. return $this->organizationLicences;
  948. }
  949. public function addOrganizationLicence(OrganizationLicence $organizationLicence): self
  950. {
  951. if (!$this->organizationLicences->contains($organizationLicence)) {
  952. $this->organizationLicences[] = $organizationLicence;
  953. $organizationLicence->setOrganization($this);
  954. }
  955. return $this;
  956. }
  957. public function removeOrganizationLicence(OrganizationLicence $organizationLicence): self
  958. {
  959. if ($this->organizationLicences->removeElement($organizationLicence)) {
  960. // set the owning side to null (unless already changed)
  961. if ($organizationLicence->getOrganization() === $this) {
  962. $organizationLicence->setOrganization(null);
  963. }
  964. }
  965. return $this;
  966. }
  967. public function getOrganizationArticles(): Collection
  968. {
  969. return $this->organizationArticles;
  970. }
  971. public function addOrganizationArticle(OrganizationArticle $organizationArticle): self
  972. {
  973. if (!$this->organizationArticles->contains($organizationArticle)) {
  974. $this->organizationArticles[] = $organizationArticle;
  975. $organizationArticle->setOrganization($this);
  976. }
  977. return $this;
  978. }
  979. public function removeOrganizationArticle(OrganizationArticle $organizationArticle): self
  980. {
  981. if ($this->organizationArticles->removeElement($organizationArticle)) {
  982. // set the owning side to null (unless already changed)
  983. if ($organizationArticle->getOrganization() === $this) {
  984. $organizationArticle->setOrganization(null);
  985. }
  986. }
  987. return $this;
  988. }
  989. public function addCycle(Cycle $cycle): self
  990. {
  991. if (!$this->cycles->contains($cycle)) {
  992. $this->cycles[] = $cycle;
  993. $cycle->setOrganization($this);
  994. }
  995. return $this;
  996. }
  997. public function removeCycle(Cycle $cycle): self
  998. {
  999. if ($this->cycles->removeElement($cycle)) {
  1000. // set the owning side to null (unless already changed)
  1001. if ($cycle->getOrganization() === $this) {
  1002. $cycle->setOrganization(null);
  1003. }
  1004. }
  1005. return $this;
  1006. }
  1007. public function getCycles(): Collection
  1008. {
  1009. return $this->cycles;
  1010. }
  1011. public function addEducationNotationConfig(EducationNotationConfig $educationNotationConfig): self
  1012. {
  1013. if (!$this->educationNotationConfigs->contains($educationNotationConfig)) {
  1014. $this->educationNotationConfigs[] = $educationNotationConfig;
  1015. $educationNotationConfig->setOrganization($this);
  1016. }
  1017. return $this;
  1018. }
  1019. public function removeEducationNotationConfig(EducationNotationConfig $educationNotationConfig): self
  1020. {
  1021. if ($this->educationNotationConfigs->removeElement($educationNotationConfig)) {
  1022. // set the owning side to null (unless already changed)
  1023. if ($educationNotationConfig->getOrganization() === $this) {
  1024. $educationNotationConfig->setOrganization(null);
  1025. }
  1026. }
  1027. return $this;
  1028. }
  1029. public function getEducationNotationConfigs(): Collection
  1030. {
  1031. return $this->educationNotationConfigs;
  1032. }
  1033. public function addEducationTiming(EducationTiming $educationTiming): self
  1034. {
  1035. if (!$this->educationTimings->contains($educationTiming)) {
  1036. $this->educationTimings[] = $educationTiming;
  1037. $educationTiming->setOrganization($this);
  1038. }
  1039. return $this;
  1040. }
  1041. public function removeEducationTiming(EducationTiming $educationTiming): self
  1042. {
  1043. if ($this->educationTimings->removeElement($educationTiming)) {
  1044. // set the owning side to null (unless already changed)
  1045. if ($educationTiming->getOrganization() === $this) {
  1046. $educationTiming->setOrganization(null);
  1047. }
  1048. }
  1049. return $this;
  1050. }
  1051. public function getEducationTimings(): Collection
  1052. {
  1053. return $this->educationTimings;
  1054. }
  1055. public function getSubdomains(): Collection
  1056. {
  1057. return $this->subdomains;
  1058. }
  1059. public function addSubdomain(Subdomain $subdomain): self
  1060. {
  1061. if (!$this->subdomains->contains($subdomain)) {
  1062. $this->subdomains[] = $subdomain;
  1063. $subdomain->setOrganization($this);
  1064. }
  1065. return $this;
  1066. }
  1067. public function getContactPerson(): ?Access
  1068. {
  1069. return $this->contactPerson;
  1070. }
  1071. public function setContactPerson(?Access $contactPerson): self
  1072. {
  1073. $this->contactPerson = $contactPerson;
  1074. return $this;
  1075. }
  1076. /**
  1077. * @return Collection<int, OrganizationHoliday>
  1078. */
  1079. public function getHolidays(): Collection
  1080. {
  1081. return $this->holidays;
  1082. }
  1083. public function addHoliday(OrganizationHoliday $holiday): self
  1084. {
  1085. if (!$this->holidays->contains($holiday)) {
  1086. $this->holidays[] = $holiday;
  1087. $holiday->setOrganization($this);
  1088. }
  1089. return $this;
  1090. }
  1091. public function removeHoliday(OrganizationHoliday $holiday): self
  1092. {
  1093. if ($this->holidays->removeElement($holiday)) {
  1094. // set the owning side to null (unless already changed)
  1095. if ($holiday->getOrganization() === $this) {
  1096. $holiday->setOrganization(null);
  1097. }
  1098. }
  1099. return $this;
  1100. }
  1101. /**
  1102. * @return Collection<int, Course>
  1103. */
  1104. public function getCourses(): Collection
  1105. {
  1106. return $this->courses;
  1107. }
  1108. public function addCourse(Course $course): self
  1109. {
  1110. if (!$this->courses->contains($course)) {
  1111. $this->courses[] = $course;
  1112. $course->setOrganization($this);
  1113. }
  1114. return $this;
  1115. }
  1116. public function removeCourse(Course $course): self
  1117. {
  1118. if ($this->courses->removeElement($course)) {
  1119. // set the owning side to null (unless already changed)
  1120. if ($course->getOrganization() === $this) {
  1121. $course->setOrganization(null);
  1122. }
  1123. }
  1124. return $this;
  1125. }
  1126. /**
  1127. * @return Collection<int, EducationalProject>
  1128. */
  1129. public function getEducationalProjects(): Collection
  1130. {
  1131. return $this->educationalProjects;
  1132. }
  1133. public function addEducationalProject(EducationalProject $educationalProject): self
  1134. {
  1135. if (!$this->educationalProjects->contains($educationalProject)) {
  1136. $this->educationalProjects[] = $educationalProject;
  1137. $educationalProject->setOrganization($this);
  1138. }
  1139. return $this;
  1140. }
  1141. public function removeEducationalProject(EducationalProject $educationalProject): self
  1142. {
  1143. if ($this->educationalProjects->removeElement($educationalProject)) {
  1144. // set the owning side to null (unless already changed)
  1145. if ($educationalProject->getOrganization() === $this) {
  1146. $educationalProject->setOrganization(null);
  1147. }
  1148. }
  1149. return $this;
  1150. }
  1151. /**
  1152. * @return Collection<int, Event>
  1153. */
  1154. public function getEvents(): Collection
  1155. {
  1156. return $this->events;
  1157. }
  1158. public function addEvent(Event $event): self
  1159. {
  1160. if (!$this->events->contains($event)) {
  1161. $this->events[] = $event;
  1162. $event->setOrganization($this);
  1163. }
  1164. return $this;
  1165. }
  1166. public function removeEvent(Event $event): self
  1167. {
  1168. if ($this->events->removeElement($event)) {
  1169. // set the owning side to null (unless already changed)
  1170. if ($event->getOrganization() === $this) {
  1171. $event->setOrganization(null);
  1172. }
  1173. }
  1174. return $this;
  1175. }
  1176. /**
  1177. * @return Collection<int, Examen>
  1178. */
  1179. public function getExamens(): Collection
  1180. {
  1181. return $this->examens;
  1182. }
  1183. public function addExamen(Examen $examen): self
  1184. {
  1185. if (!$this->examens->contains($examen)) {
  1186. $this->examens[] = $examen;
  1187. $examen->setOrganization($this);
  1188. }
  1189. return $this;
  1190. }
  1191. public function removeExamen(Examen $examen): self
  1192. {
  1193. if ($this->examens->removeElement($examen)) {
  1194. // set the owning side to null (unless already changed)
  1195. if ($examen->getOrganization() === $this) {
  1196. $examen->setOrganization(null);
  1197. }
  1198. }
  1199. return $this;
  1200. }
  1201. /**
  1202. * @return Collection<int, CriteriaNotation>
  1203. */
  1204. public function getCritereNotations(): Collection
  1205. {
  1206. return $this->critereNotations;
  1207. }
  1208. public function addCritereNotation(CriteriaNotation $critereNotation): self
  1209. {
  1210. if (!$this->critereNotations->contains($critereNotation)) {
  1211. $this->critereNotations[] = $critereNotation;
  1212. $critereNotation->setOrganization($this);
  1213. }
  1214. return $this;
  1215. }
  1216. public function removeCritereNotation(CriteriaNotation $critereNotation): self
  1217. {
  1218. if ($this->critereNotations->removeElement($critereNotation)) {
  1219. // set the owning side to null (unless already changed)
  1220. if ($critereNotation->getOrganization() === $this) {
  1221. $critereNotation->setOrganization(null);
  1222. }
  1223. }
  1224. return $this;
  1225. }
  1226. /**
  1227. * @return Collection<int, EducationCategory>
  1228. */
  1229. public function getEducationCategories(): Collection
  1230. {
  1231. return $this->educationCategories;
  1232. }
  1233. public function addEducationCategory(EducationCategory $educationCategory): self
  1234. {
  1235. if (!$this->educationCategories->contains($educationCategory)) {
  1236. $this->educationCategories[] = $educationCategory;
  1237. $educationCategory->setOrganization($this);
  1238. }
  1239. return $this;
  1240. }
  1241. public function removeEducationCategory(EducationCategory $educationCategory): self
  1242. {
  1243. if ($this->educationCategories->removeElement($educationCategory)) {
  1244. // set the owning side to null (unless already changed)
  1245. if ($educationCategory->getOrganization() === $this) {
  1246. $educationCategory->setOrganization(null);
  1247. }
  1248. }
  1249. return $this;
  1250. }
  1251. /**
  1252. * @return Collection<int, PeriodNotation>
  1253. */
  1254. public function getPeriodNotations(): Collection
  1255. {
  1256. return $this->periodNotations;
  1257. }
  1258. public function addPeriodNotation(PeriodNotation $periodNotation): self
  1259. {
  1260. if (!$this->periodNotations->contains($periodNotation)) {
  1261. $this->periodNotations[] = $periodNotation;
  1262. $periodNotation->setOrganization($this);
  1263. }
  1264. return $this;
  1265. }
  1266. public function removePeriodNotation(PeriodNotation $periodNotation): self
  1267. {
  1268. if ($this->periodNotations->removeElement($periodNotation)) {
  1269. // set the owning side to null (unless already changed)
  1270. if ($periodNotation->getOrganization() === $this) {
  1271. $periodNotation->setOrganization(null);
  1272. }
  1273. }
  1274. return $this;
  1275. }
  1276. /**
  1277. * @return Collection<int, File>
  1278. */
  1279. public function getFiles(): Collection
  1280. {
  1281. return $this->files;
  1282. }
  1283. public function addFile(File $file): self
  1284. {
  1285. if (!$this->files->contains($file)) {
  1286. $this->files[] = $file;
  1287. $file->setOrganization($this);
  1288. }
  1289. return $this;
  1290. }
  1291. public function removeFile(File $file): self
  1292. {
  1293. if ($this->files->removeElement($file)) {
  1294. // set the owning side to null (unless already changed)
  1295. if ($file->getOrganization() === $this) {
  1296. $file->setOrganization(null);
  1297. }
  1298. }
  1299. return $this;
  1300. }
  1301. /**
  1302. * @return Collection<int, Notification>
  1303. */
  1304. public function getNotifications(): Collection
  1305. {
  1306. return $this->notifications;
  1307. }
  1308. public function addNotification(Notification $notification): self
  1309. {
  1310. if (!$this->notifications->contains($notification)) {
  1311. $this->notifications[] = $notification;
  1312. $notification->setRecipientOrganization($this);
  1313. }
  1314. return $this;
  1315. }
  1316. public function removeNotification(Notification $notification): self
  1317. {
  1318. if ($this->notifications->removeElement($notification)) {
  1319. // set the owning side to null (unless already changed)
  1320. if ($notification->getRecipientOrganization() === $this) {
  1321. $notification->setRecipientOrganization(null);
  1322. }
  1323. }
  1324. return $this;
  1325. }
  1326. /**
  1327. * @return Collection<int, Email>
  1328. */
  1329. public function getEmails(): Collection
  1330. {
  1331. return $this->emails;
  1332. }
  1333. /**
  1334. * @return Collection<int, Mail>
  1335. */
  1336. public function getMails(): Collection
  1337. {
  1338. return $this->mails;
  1339. }
  1340. /**
  1341. * @return Collection<int, Sms>
  1342. */
  1343. public function getSms(): Collection
  1344. {
  1345. return $this->sms;
  1346. }
  1347. /**
  1348. * @return Collection<int, Activity>
  1349. */
  1350. public function getActivities(): Collection
  1351. {
  1352. return $this->activities;
  1353. }
  1354. public function addActivity(Activity $activity): self
  1355. {
  1356. if (!$this->activities->contains($activity)) {
  1357. $this->activities[] = $activity;
  1358. $activity->setOrganization($this);
  1359. }
  1360. return $this;
  1361. }
  1362. public function removeActivity(Activity $activity): self
  1363. {
  1364. if ($this->activities->removeElement($activity)) {
  1365. // set the owning side to null (unless already changed)
  1366. if ($activity->getOrganization() === $this) {
  1367. $activity->setOrganization(null);
  1368. }
  1369. }
  1370. return $this;
  1371. }
  1372. /**
  1373. * @return Collection<int, Jury>
  1374. */
  1375. public function getJuries(): Collection
  1376. {
  1377. return $this->juries;
  1378. }
  1379. public function addJury(Jury $jury): self
  1380. {
  1381. if (!$this->juries->contains($jury)) {
  1382. $this->juries[] = $jury;
  1383. $jury->setOrganization($this);
  1384. }
  1385. return $this;
  1386. }
  1387. public function removeJury(Jury $jury): self
  1388. {
  1389. if ($this->juries->removeElement($jury)) {
  1390. // set the owning side to null (unless already changed)
  1391. if ($jury->getOrganization() === $this) {
  1392. $jury->setOrganization(null);
  1393. }
  1394. }
  1395. return $this;
  1396. }
  1397. /**
  1398. * @return Collection<int, Commission>
  1399. */
  1400. public function getCommissions(): Collection
  1401. {
  1402. return $this->commissions;
  1403. }
  1404. public function addCommission(Commission $commission): self
  1405. {
  1406. if (!$this->commissions->contains($commission)) {
  1407. $this->commissions[] = $commission;
  1408. $commission->setOrganization($this);
  1409. }
  1410. return $this;
  1411. }
  1412. public function removeCommission(Commission $commission): self
  1413. {
  1414. if ($this->commissions->removeElement($commission)) {
  1415. // set the owning side to null (unless already changed)
  1416. if ($commission->getOrganization() === $this) {
  1417. $commission->setOrganization(null);
  1418. }
  1419. }
  1420. return $this;
  1421. }
  1422. public function getPlaces(): Collection
  1423. {
  1424. return $this->places;
  1425. }
  1426. public function addPlace(Place $place): self
  1427. {
  1428. if (!$this->places->contains($place)) {
  1429. $this->places[] = $place;
  1430. $place->setOrganization($this);
  1431. }
  1432. return $this;
  1433. }
  1434. public function removePlace(Place $place): self
  1435. {
  1436. if ($this->places->removeElement($place)) {
  1437. // set the owning side to null (unless already changed)
  1438. if ($place->getOrganization() === $this) {
  1439. $place->setOrganization(null);
  1440. }
  1441. }
  1442. return $this;
  1443. }
  1444. /**
  1445. * @return Collection<int, Attendance>
  1446. */
  1447. public function getAttendances(): Collection
  1448. {
  1449. return $this->attendances;
  1450. }
  1451. public function addAttendance(Attendance $attendance): self
  1452. {
  1453. if (!$this->attendances->contains($attendance)) {
  1454. $this->attendances[] = $attendance;
  1455. $attendance->setOrganization($this);
  1456. }
  1457. return $this;
  1458. }
  1459. public function removeAttendance(Attendance $attendance): self
  1460. {
  1461. if ($this->attendances->removeElement($attendance)) {
  1462. // set the owning side to null (unless already changed)
  1463. if ($attendance->getOrganization() === $this) {
  1464. $attendance->setOrganization(null);
  1465. }
  1466. }
  1467. return $this;
  1468. }
  1469. /**
  1470. * @return Collection<int, Equipment>
  1471. */
  1472. public function getEquipments(): Collection
  1473. {
  1474. return $this->equipments;
  1475. }
  1476. public function addEquipment(Equipment $equipment): self
  1477. {
  1478. if (!$this->equipments->contains($equipment)) {
  1479. $this->equipments[] = $equipment;
  1480. $equipment->setOrganization($this);
  1481. }
  1482. return $this;
  1483. }
  1484. public function removeEquipment(Equipment $equipment): self
  1485. {
  1486. if ($this->equipments->removeElement($equipment)) {
  1487. // set the owning side to null (unless already changed)
  1488. if ($equipment->getOrganization() === $this) {
  1489. $equipment->setOrganization(null);
  1490. }
  1491. }
  1492. return $this;
  1493. }
  1494. /**
  1495. * @return Collection<int, Intangible>
  1496. */
  1497. public function getIntangibles(): Collection
  1498. {
  1499. return $this->intangibles;
  1500. }
  1501. public function addIntangible(Intangible $intangible): self
  1502. {
  1503. if (!$this->intangibles->contains($intangible)) {
  1504. $this->intangibles[] = $intangible;
  1505. $intangible->setOrganization($this);
  1506. }
  1507. return $this;
  1508. }
  1509. public function removeIntangible(Intangible $intangible): self
  1510. {
  1511. if ($this->intangibles->removeElement($intangible)) {
  1512. // set the owning side to null (unless already changed)
  1513. if ($intangible->getOrganization() === $this) {
  1514. $intangible->setOrganization(null);
  1515. }
  1516. }
  1517. return $this;
  1518. }
  1519. /**
  1520. * @return Collection<int, Donor>
  1521. */
  1522. public function getDonors(): Collection
  1523. {
  1524. return $this->donors;
  1525. }
  1526. public function addDonor(Donor $donor): self
  1527. {
  1528. if (!$this->donors->contains($donor)) {
  1529. $this->donors[] = $donor;
  1530. $donor->setOrganization($this);
  1531. }
  1532. return $this;
  1533. }
  1534. public function removeDonor(Donor $donor): self
  1535. {
  1536. if ($this->donors->removeElement($donor)) {
  1537. // set the owning side to null (unless already changed)
  1538. if ($donor->getOrganization() === $this) {
  1539. $donor->setOrganization(null);
  1540. }
  1541. }
  1542. return $this;
  1543. }
  1544. // public function getOnlineRegistrationSettings(): \App\Entity\Organization\OnlineRegistrationSettings
  1545. // {
  1546. // return $this->onlineRegistrationSettings;
  1547. // }
  1548. //
  1549. // public function setOnlineRegistrationSettings(\App\Entity\Organization\OnlineRegistrationSettings $onlineRegistrationSettings): void
  1550. // {
  1551. // $this->onlineRegistrationSettings = $onlineRegistrationSettings;
  1552. // }
  1553. /**
  1554. * @return Collection<int, Tagg>
  1555. */
  1556. public function getTags(): Collection
  1557. {
  1558. return $this->tags;
  1559. }
  1560. public function addTag(Tagg $tag): self
  1561. {
  1562. if (!$this->tags->contains($tag)) {
  1563. $this->tags[] = $tag;
  1564. }
  1565. return $this;
  1566. }
  1567. public function removeTag(Tagg $tag): self
  1568. {
  1569. $this->tags->removeElement($tag);
  1570. return $this;
  1571. }
  1572. public function getRewards(): Collection
  1573. {
  1574. return $this->rewards;
  1575. }
  1576. public function addReward(Reward $rewards): self
  1577. {
  1578. if (!$this->rewards->contains($rewards)) {
  1579. $this->rewards[] = $rewards;
  1580. $rewards->setOrganization($this);
  1581. }
  1582. return $this;
  1583. }
  1584. public function removeReward(Reward $rewards): self
  1585. {
  1586. if ($this->rewards->removeElement($rewards)) {
  1587. // set the owning side to null (unless already changed)
  1588. if ($rewards->getOrganization() === $this) {
  1589. $rewards->setOrganization(null);
  1590. }
  1591. }
  1592. return $this;
  1593. }
  1594. public function getNetwork(): Collection
  1595. {
  1596. return $this->network;
  1597. }
  1598. public function addNetwork(NetworkOrganization $network): self
  1599. {
  1600. if (!$this->network->contains($network)) {
  1601. $this->network[] = $network;
  1602. $network->setOrganization($this);
  1603. }
  1604. return $this;
  1605. }
  1606. public function removeNetwork(NetworkOrganization $network): self
  1607. {
  1608. if ($this->network->removeElement($network)) {
  1609. $network->setOrganization(null);
  1610. }
  1611. return $this;
  1612. }
  1613. public function getNetworkChild(): Collection
  1614. {
  1615. return $this->networkChild;
  1616. }
  1617. public function addNetworkChild(NetworkOrganization $networkChild): self
  1618. {
  1619. if (!$this->networkChild->contains($networkChild)) {
  1620. $this->networkChild[] = $networkChild;
  1621. $networkChild->setParent($this);
  1622. }
  1623. return $this;
  1624. }
  1625. public function removeNetworkChild(NetworkOrganization $networkChild): self
  1626. {
  1627. if ($this->networkChild->removeElement($networkChild)) {
  1628. $networkChild->setParent(null);
  1629. }
  1630. return $this;
  1631. }
  1632. public function getBillingExportSetting(): ?BillingExportSetting
  1633. {
  1634. return $this->billingExportSetting;
  1635. }
  1636. public function setBillingExportSetting(?BillingExportSetting $billingExportSetting): self
  1637. {
  1638. $this->billingExportSetting = $billingExportSetting;
  1639. return $this;
  1640. }
  1641. public function getMessages(): Collection
  1642. {
  1643. return $this->messages;
  1644. }
  1645. public function addMessage(mixed $message): self
  1646. {
  1647. if (!$this->messages->contains($message)) {
  1648. $this->messages[] = $message;
  1649. $message->setOrganization($this);
  1650. }
  1651. return $this;
  1652. }
  1653. public function removeMessage(mixed $message): self
  1654. {
  1655. if ($this->messages->removeElement($message)) {
  1656. $message->setOrganization(null);
  1657. }
  1658. return $this;
  1659. }
  1660. public function getOnlineRegistrationSettings(): ?OnlineRegistrationSettings
  1661. {
  1662. return $this->onlineRegistrationSettings;
  1663. }
  1664. public function setOnlineRegistrationSettings(?OnlineRegistrationSettings $onlineRegistrationSettings): self
  1665. {
  1666. $this->onlineRegistrationSettings = $onlineRegistrationSettings;
  1667. return $this;
  1668. }
  1669. public function getHelloAsso(): ?HelloAsso
  1670. {
  1671. return $this->helloAsso;
  1672. }
  1673. public function setHelloAsso(?HelloAsso $helloAsso): self
  1674. {
  1675. $this->helloAsso = $helloAsso;
  1676. return $this;
  1677. }
  1678. public function getCotisationByYears(): Collection
  1679. {
  1680. return $this->cotisationByYears;
  1681. }
  1682. public function addCotisationByYear(CotisationByYear $cotisationByYear): self
  1683. {
  1684. if (!$this->cotisationByYears->contains($cotisationByYear)) {
  1685. $this->cotisationByYears[] = $cotisationByYear;
  1686. $cotisationByYear->setOrganization($this);
  1687. }
  1688. return $this;
  1689. }
  1690. public function removeCotisationByYear(CotisationByYear $cotisationByYear): self
  1691. {
  1692. if ($this->cotisationByYears->removeElement($cotisationByYear)) {
  1693. $cotisationByYear->setOrganization(null);
  1694. }
  1695. return $this;
  1696. }
  1697. public function getAttendanceBookingReasons(): Collection
  1698. {
  1699. return $this->attendanceBookingReasons;
  1700. }
  1701. public function addAttendanceBookingReason(AttendanceBookingReason $attendanceBookingReason): self
  1702. {
  1703. if (!$this->attendanceBookingReasons->contains($attendanceBookingReason)) {
  1704. $this->attendanceBookingReasons[] = $attendanceBookingReason;
  1705. $attendanceBookingReason->setOrganization($this);
  1706. }
  1707. return $this;
  1708. }
  1709. public function removeAttendanceBookingReason(AttendanceBookingReason $attendanceBookingReason): self
  1710. {
  1711. if ($this->attendanceBookingReasons->removeElement($attendanceBookingReason)) {
  1712. $attendanceBookingReason->setOrganization(null);
  1713. }
  1714. return $this;
  1715. }
  1716. public function getEducationCurriculumPacks(): Collection
  1717. {
  1718. return $this->educationCurriculumPacks;
  1719. }
  1720. public function addEducationCurriculumPack(Cycle $educationCurriculumPack): self
  1721. {
  1722. if (!$this->educationCurriculumPacks->contains($educationCurriculumPack)) {
  1723. $this->educationCurriculumPacks[] = $educationCurriculumPack;
  1724. $educationCurriculumPack->setOrganization($this);
  1725. }
  1726. return $this;
  1727. }
  1728. public function removeEducationCurriculumPack(Cycle $educationCurriculumPack): self
  1729. {
  1730. if ($this->educationCurriculumPacks->removeElement($educationCurriculumPack)) {
  1731. $educationCurriculumPack->setOrganization(null);
  1732. }
  1733. return $this;
  1734. }
  1735. public function getFamilyQuotientModels(): Collection
  1736. {
  1737. return $this->familyQuotientModels;
  1738. }
  1739. public function addFamilyQuotientModel(FamilyQuotientModel $familyQuotientModel): self
  1740. {
  1741. if (!$this->familyQuotientModels->contains($familyQuotientModel)) {
  1742. $this->familyQuotientModels[] = $familyQuotientModel;
  1743. $familyQuotientModel->setOrganization($this);
  1744. }
  1745. return $this;
  1746. }
  1747. public function removeFamilyQuotientModel(FamilyQuotientModel $familyQuotientModel): self
  1748. {
  1749. if ($this->familyQuotientModels->removeElement($familyQuotientModel)) {
  1750. // $familyQuotientModel->setOrganization(null); // TODO: actuellement, pas nullable: conserver?
  1751. }
  1752. return $this;
  1753. }
  1754. public function getBillSchedules(): Collection
  1755. {
  1756. return $this->billSchedules;
  1757. }
  1758. public function addBillSchedule(BillSchedule $billSchedule): self
  1759. {
  1760. if (!$this->billSchedules->contains($billSchedule)) {
  1761. $this->billSchedules[] = $billSchedule;
  1762. $billSchedule->setOrganization($this);
  1763. }
  1764. return $this;
  1765. }
  1766. public function removeBillSchedule(BillSchedule $billSchedule): self
  1767. {
  1768. if ($this->billSchedules->removeElement($billSchedule)) {
  1769. // $billSchedule->setOrganization(null); // TODO: actuellement, pas nullable: conserver?
  1770. }
  1771. return $this;
  1772. }
  1773. public function getReports(): Collection
  1774. {
  1775. return $this->reports;
  1776. }
  1777. public function addReport(AbstractReport $report): self
  1778. {
  1779. if (!$this->reports->contains($report)) {
  1780. $this->reports[] = $report;
  1781. $report->setOrganization($this);
  1782. }
  1783. return $this;
  1784. }
  1785. public function removeReport(AbstractReport $report): self
  1786. {
  1787. if ($this->reports->removeElement($report)) {
  1788. $report->setOrganization(null);
  1789. }
  1790. return $this;
  1791. }
  1792. public function getOrders(): Collection
  1793. {
  1794. return $this->orders;
  1795. }
  1796. public function addOrder(Orders $order): self
  1797. {
  1798. if (!$this->orders->contains($order)) {
  1799. $this->orders[] = $order;
  1800. $order->setOrganization($this);
  1801. }
  1802. return $this;
  1803. }
  1804. public function removeOrder(Orders $order): self
  1805. {
  1806. if ($this->orders->removeElement($order)) {
  1807. $order->setOrganization(null);
  1808. }
  1809. return $this;
  1810. }
  1811. public function getTips(): Collection
  1812. {
  1813. return $this->tips;
  1814. }
  1815. public function addTip(Tips $tip): self
  1816. {
  1817. if (!$this->tips->contains($tip)) {
  1818. $this->tips[] = $tip;
  1819. $tip->addOrganization($this);
  1820. }
  1821. return $this;
  1822. }
  1823. public function removeTip(Tips $tip): self
  1824. {
  1825. if ($this->tips->removeElement($tip)) {
  1826. $tip->removeOrganization($this);
  1827. }
  1828. return $this;
  1829. }
  1830. }