Beispiel #1
0
 /**
  * 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->aStartgroup) {
         $this->aStartgroup->removeRoutine($this);
     }
     if (null !== $this->aPerformanceTotalStatistic) {
         $this->aPerformanceTotalStatistic->removeRoutineRelatedByPerformanceTotalStatisticId($this);
     }
     if (null !== $this->aPerformanceExecutionStatistic) {
         $this->aPerformanceExecutionStatistic->removeRoutineRelatedByPerformanceExecutionStatisticId($this);
     }
     if (null !== $this->aPerformanceChoreographyStatistic) {
         $this->aPerformanceChoreographyStatistic->removeRoutineRelatedByPerformanceChoreographyStatisticId($this);
     }
     if (null !== $this->aPerformanceMusicAndTimingStatistic) {
         $this->aPerformanceMusicAndTimingStatistic->removeRoutineRelatedByPerformanceMusicAndTimingStatisticId($this);
     }
     $this->id = null;
     $this->name = null;
     $this->startgroup_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);
 }