/**
  * 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->aFittingRuleRow) {
         $this->aFittingRuleRow->removeItemFilterRule($this);
     }
     if (null !== $this->aconcatenationObj) {
         $this->aconcatenationObj->removeItemFilterRuleRelatedByConcatenation($this);
     }
     if (null !== $this->aItemFilterDef) {
         $this->aItemFilterDef->removeItemFilterRule($this);
     }
     if (null !== $this->acomparisonObj) {
         $this->acomparisonObj->removeItemFilterRuleRelatedByComparison($this);
     }
     $this->id = null;
     $this->fittingrulerowid = null;
     $this->ind3x = null;
     $this->concatenation = null;
     $this->itemfilterdefid = null;
     $this->comparison = null;
     $this->value = null;
     $this->content1 = null;
     $this->content2 = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }