/**
  * Filter the query by a related \ECP\ItemFilterRule object
  *
  * @param \ECP\ItemFilterRule|ObjectCollection $itemFilterRule the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildFittingRuleRowQuery The current query, for fluid interface
  */
 public function filterByItemFilterRule($itemFilterRule, $comparison = null)
 {
     if ($itemFilterRule instanceof \ECP\ItemFilterRule) {
         return $this->addUsingAlias(FittingRuleRowTableMap::COL_ID, $itemFilterRule->getFittingrulerowid(), $comparison);
     } elseif ($itemFilterRule instanceof ObjectCollection) {
         return $this->useItemFilterRuleQuery()->filterByPrimaryKeys($itemFilterRule->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByItemFilterRule() only accepts arguments of type \\ECP\\ItemFilterRule or Collection');
     }
 }
 /**
  * Exclude object from result
  *
  * @param   ChildItemFilterRule $itemFilterRule Object to remove from the list of results
  *
  * @return $this|ChildItemFilterRuleQuery The current query, for fluid interface
  */
 public function prune($itemFilterRule = null)
 {
     if ($itemFilterRule) {
         $this->addUsingAlias(ItemFilterRuleTableMap::COL_ID, $itemFilterRule->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
 /**
  * @param ChildItemFilterRule $itemFilterRule The ChildItemFilterRule object to add.
  */
 protected function doAddItemFilterRule(ChildItemFilterRule $itemFilterRule)
 {
     $this->collItemFilterRules[] = $itemFilterRule;
     $itemFilterRule->setItemFilterDef($this);
 }
 /**
  * @param ChildItemFilterRule $itemFilterRuleRelatedByComparison The ChildItemFilterRule object to add.
  */
 protected function doAddItemFilterRuleRelatedByComparison(ChildItemFilterRule $itemFilterRuleRelatedByComparison)
 {
     $this->collItemFilterRulesRelatedByComparison[] = $itemFilterRuleRelatedByComparison;
     $itemFilterRuleRelatedByComparison->setcomparisonObj($this);
 }
 /**
  * @param ChildItemFilterRule $itemFilterRule The ChildItemFilterRule object to add.
  */
 protected function doAddItemFilterRule(ChildItemFilterRule $itemFilterRule)
 {
     $this->collItemFilterRules[] = $itemFilterRule;
     $itemFilterRule->setFittingRuleRow($this);
 }