/** * Clears the current object, sets all attributes to their default values and removes * outgoing references as well as back-references (from other objects to this one. Results probably in a database * change of those foreign objects when you call `save` there). */ public function clear() { if (null !== $this->aCompetition) { $this->aCompetition->removeStartgroup($this); } if (null !== $this->aEvent) { $this->aEvent->removeStartgroup($this); } if (null !== $this->aPerformanceTotalStatistic) { $this->aPerformanceTotalStatistic->removeStartgroupRelatedByPerformanceTotalStatisticId($this); } if (null !== $this->aPerformanceExecutionStatistic) { $this->aPerformanceExecutionStatistic->removeStartgroupRelatedByPerformanceExecutionStatisticId($this); } if (null !== $this->aPerformanceChoreographyStatistic) { $this->aPerformanceChoreographyStatistic->removeStartgroupRelatedByPerformanceChoreographyStatisticId($this); } if (null !== $this->aPerformanceMusicAndTimingStatistic) { $this->aPerformanceMusicAndTimingStatistic->removeStartgroupRelatedByPerformanceMusicAndTimingStatisticId($this); } $this->id = null; $this->name = null; $this->slug = null; $this->competition_id = null; $this->event_id = null; $this->performance_total_statistic_id = null; $this->performance_execution_statistic_id = null; $this->performance_choreography_statistic_id = null; $this->performance_music_and_timing_statistic_id = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }