/**
  * 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);
 }
 /**
  * @param ChildItemFilterDef $itemFilterDef The ChildItemFilterDef object to add.
  */
 protected function doAddItemFilterDef(ChildItemFilterDef $itemFilterDef)
 {
     $this->collItemFilterDefs[] = $itemFilterDef;
     $itemFilterDef->setType($this);
 }
 /**
  * Filter the query by a related \ECP\ItemFilterDef object
  *
  * @param \ECP\ItemFilterDef|ObjectCollection $itemFilterDef the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildTypeQuery The current query, for fluid interface
  */
 public function filterByItemFilterDef($itemFilterDef, $comparison = null)
 {
     if ($itemFilterDef instanceof \ECP\ItemFilterDef) {
         return $this->addUsingAlias(TypeTableMap::COL_ID, $itemFilterDef->getTypeid(), $comparison);
     } elseif ($itemFilterDef instanceof ObjectCollection) {
         return $this->useItemFilterDefQuery()->filterByPrimaryKeys($itemFilterDef->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByItemFilterDef() only accepts arguments of type \\ECP\\ItemFilterDef or Collection');
     }
 }
 /**
  * Filter the query by a related \ECP\ItemFilterDef object
  *
  * @param \ECP\ItemFilterDef|ObjectCollection $itemFilterDef The related object(s) to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @throws \Propel\Runtime\Exception\PropelException
  *
  * @return ChildItemFilterRuleQuery The current query, for fluid interface
  */
 public function filterByItemFilterDef($itemFilterDef, $comparison = null)
 {
     if ($itemFilterDef instanceof \ECP\ItemFilterDef) {
         return $this->addUsingAlias(ItemFilterRuleTableMap::COL_ITEMFILTERDEFID, $itemFilterDef->getId(), $comparison);
     } elseif ($itemFilterDef instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(ItemFilterRuleTableMap::COL_ITEMFILTERDEFID, $itemFilterDef->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByItemFilterDef() only accepts arguments of type \\ECP\\ItemFilterDef or Collection');
     }
 }
 /**
  * Exclude object from result
  *
  * @param   ChildItemFilterDef $itemFilterDef Object to remove from the list of results
  *
  * @return $this|ChildItemFilterDefQuery The current query, for fluid interface
  */
 public function prune($itemFilterDef = null)
 {
     if ($itemFilterDef) {
         $this->addUsingAlias(ItemFilterDefTableMap::COL_ID, $itemFilterDef->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }