예제 #1
0
파일: Competition.php 프로젝트: iuf/junia
 /**
  * @param  ChildStartgroup $startgroup The ChildStartgroup object to remove.
  * @return $this|ChildCompetition The current object (for fluent API support)
  */
 public function removeStartgroup(ChildStartgroup $startgroup)
 {
     if ($this->getStartgroups()->contains($startgroup)) {
         $pos = $this->collStartgroups->search($startgroup);
         $this->collStartgroups->remove($pos);
         if (null === $this->startgroupsScheduledForDeletion) {
             $this->startgroupsScheduledForDeletion = clone $this->collStartgroups;
             $this->startgroupsScheduledForDeletion->clear();
         }
         $this->startgroupsScheduledForDeletion[] = clone $startgroup;
         $startgroup->setCompetition(null);
     }
     return $this;
 }
예제 #2
0
 /**
  * @param  ChildStartgroup $startgroupRelatedByPerformanceMusicAndTimingStatisticId The ChildStartgroup object to remove.
  * @return $this|ChildPerformanceStatistic The current object (for fluent API support)
  */
 public function removeStartgroupRelatedByPerformanceMusicAndTimingStatisticId(ChildStartgroup $startgroupRelatedByPerformanceMusicAndTimingStatisticId)
 {
     if ($this->getStartgroupsRelatedByPerformanceMusicAndTimingStatisticId()->contains($startgroupRelatedByPerformanceMusicAndTimingStatisticId)) {
         $pos = $this->collStartgroupsRelatedByPerformanceMusicAndTimingStatisticId->search($startgroupRelatedByPerformanceMusicAndTimingStatisticId);
         $this->collStartgroupsRelatedByPerformanceMusicAndTimingStatisticId->remove($pos);
         if (null === $this->startgroupsRelatedByPerformanceMusicAndTimingStatisticIdScheduledForDeletion) {
             $this->startgroupsRelatedByPerformanceMusicAndTimingStatisticIdScheduledForDeletion = clone $this->collStartgroupsRelatedByPerformanceMusicAndTimingStatisticId;
             $this->startgroupsRelatedByPerformanceMusicAndTimingStatisticIdScheduledForDeletion->clear();
         }
         $this->startgroupsRelatedByPerformanceMusicAndTimingStatisticIdScheduledForDeletion[] = $startgroupRelatedByPerformanceMusicAndTimingStatisticId;
         $startgroupRelatedByPerformanceMusicAndTimingStatisticId->setPerformanceMusicAndTimingStatistic(null);
     }
     return $this;
 }