/**
  * 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->aType) {
         $this->aType->removeTypeComparison($this);
     }
     if (null !== $this->aComparison) {
         $this->aComparison->removeTypeComparison($this);
     }
     $this->id = null;
     $this->typeid = null;
     $this->comparisonid = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
 /**
  * Filter the query by a related \ECP\Type object
  *
  * @param \ECP\Type|ObjectCollection $type 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 ChildTypeComparisonQuery The current query, for fluid interface
  */
 public function filterByType($type, $comparison = null)
 {
     if ($type instanceof \ECP\Type) {
         return $this->addUsingAlias(TypeComparisonTableMap::COL_TYPEID, $type->getId(), $comparison);
     } elseif ($type instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(TypeComparisonTableMap::COL_TYPEID, $type->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByType() only accepts arguments of type \\ECP\\Type or Collection');
     }
 }
 /**
  * Exclude object from result
  *
  * @param   ChildType $type Object to remove from the list of results
  *
  * @return $this|ChildTypeQuery The current query, for fluid interface
  */
 public function prune($type = null)
 {
     if ($type) {
         $this->addUsingAlias(TypeTableMap::COL_ID, $type->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
 /**
  * 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->aType) {
         $this->aType->removeItemFilterDef($this);
     }
     $this->id = null;
     $this->name = null;
     $this->typeid = null;
     $this->min = null;
     $this->max = null;
     $this->minlength = null;
     $this->maxlength = null;
     $this->depth = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }