/**
  * Exclude object from result
  *
  * @param   ChildTypeComparison $typeComparison Object to remove from the list of results
  *
  * @return $this|ChildTypeComparisonQuery The current query, for fluid interface
  */
 public function prune($typeComparison = null)
 {
     if ($typeComparison) {
         $this->addCond('pruneCond0', $this->getAliasedColName(TypeComparisonTableMap::COL_ID), $typeComparison->getId(), Criteria::NOT_EQUAL);
         $this->addCond('pruneCond1', $this->getAliasedColName(TypeComparisonTableMap::COL_TYPEID), $typeComparison->getTypeid(), Criteria::NOT_EQUAL);
         $this->addCond('pruneCond2', $this->getAliasedColName(TypeComparisonTableMap::COL_COMPARISONID), $typeComparison->getComparisonid(), Criteria::NOT_EQUAL);
         $this->combine(array('pruneCond0', 'pruneCond1', 'pruneCond2'), Criteria::LOGICAL_OR);
     }
     return $this;
 }
 /**
  * Adds an object to the instance pool.
  *
  * Propel keeps cached copies of objects in an instance pool when they are retrieved
  * from the database. In some cases you may need to explicitly add objects
  * to the cache in order to ensure that the same objects are always returned by find*()
  * and findPk*() calls.
  *
  * @param \ECP\TypeComparison $obj A \ECP\TypeComparison object.
  * @param string $key             (optional) key to use for instance map (for performance boost if key was already calculated externally).
  */
 public static function addInstanceToPool($obj, $key = null)
 {
     if (Propel::isInstancePoolingEnabled()) {
         if (null === $key) {
             $key = serialize(array((string) $obj->getId(), (string) $obj->getTypeid(), (string) $obj->getComparisonid()));
         }
         // if key === null
         self::$instances[$key] = $obj;
     }
 }
 /**
  * Remove comparison, id of this object
  * through the typecomparison cross reference table.
  * 
  * @param ChildComparison $comparison, 
  * @param int $id
  * @return ChildType The current object (for fluent API support)
  */
 public function removeComparisonId(ChildComparison $comparison, $id)
 {
     if ($this->getComparisonIds()->contains($comparison, $id)) {
         $typeComparison = new ChildTypeComparison();
         $typeComparison->setComparison($comparison);
         if ($comparison->isTypeIdsLoaded()) {
             //remove the back reference if available
             $comparison->getTypeIds()->removeObject($this, $id);
         }
         $typeComparison->setId($id);
         $typeComparison->setType($this);
         $this->removeTypeComparison(clone $typeComparison);
         $typeComparison->clear();
         $this->combinationCollComparisonIds->remove($this->combinationCollComparisonIds->search($comparison, $id));
         if (null === $this->combinationCollComparisonIdsScheduledForDeletion) {
             $this->combinationCollComparisonIdsScheduledForDeletion = clone $this->combinationCollComparisonIds;
             $this->combinationCollComparisonIdsScheduledForDeletion->clear();
         }
         $this->combinationCollComparisonIdsScheduledForDeletion->push($comparison, $id);
     }
     return $this;
 }
 /**
  * Filter the query by a related \ECP\TypeComparison object
  *
  * @param \ECP\TypeComparison|ObjectCollection $typeComparison 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 filterByTypeComparison($typeComparison, $comparison = null)
 {
     if ($typeComparison instanceof \ECP\TypeComparison) {
         return $this->addUsingAlias(TypeTableMap::COL_ID, $typeComparison->getTypeid(), $comparison);
     } elseif ($typeComparison instanceof ObjectCollection) {
         return $this->useTypeComparisonQuery()->filterByPrimaryKeys($typeComparison->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByTypeComparison() only accepts arguments of type \\ECP\\TypeComparison or Collection');
     }
 }