/**
  * 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->aпрограммы) {
         $this->aпрограммы->removeпроизводственныепрограммы($this);
     }
     if (null !== $this->aмесяца) {
         $this->aмесяца->removeпроизводственныепрограммы($this);
     }
     if (null !== $this->aгода) {
         $this->aгода->removeпроизводственныепрограммы($this);
     }
     $this->id = null;
     $this->тип_программы = null;
     $this->год = null;
     $this->месяц = null;
     $this->план = null;
     $this->факт = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }