/**
  * 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->aSnippet) {
         $this->aSnippet->removeContentArea($this);
     }
     if (null !== $this->aSummary) {
         $this->aSummary->removeContentArea($this);
     }
     $this->content = null;
     $this->active_version = null;
     $this->id = null;
     $this->version = null;
     $this->version_created_at = null;
     $this->version_created_by = null;
     $this->version_comment = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->applyDefaultValues();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }