File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -277,7 +277,10 @@ public function getPeople(): Collection
277277
278278 foreach ($ this ->getResearchGroups () as $ researchGroup ) {
279279 foreach ($ researchGroup ->getPersonResearchGroups () as $ personResearchGroup ) {
280- $ people ->add ($ personResearchGroup ->getPerson ());
280+ $ person = $ personResearchGroup ->getPerson ();
281+ if (!$ people ->contains ($ person )) {
282+ $ people ->add ($ person );
283+ }
281284 }
282285 }
283286
Original file line number Diff line number Diff line change @@ -622,7 +622,10 @@ public function getPeople(): Collection
622622 {
623623 $ people = new ArrayCollection ();
624624 foreach ($ this ->getPersonResearchGroups () as $ personResearchGroup ) {
625- $ people ->add ($ personResearchGroup ->getPerson ());
625+ $ person = $ personResearchGroup ->getPerson ();
626+ if (!$ people ->contains ($ person )) {
627+ $ people ->add ($ person );
628+ }
626629 }
627630
628631 return $ people ;
You can’t perform that action at this time.
0 commit comments