/** * @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; }
/** * @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; }