コード例 #1
0
 /**
  * Filter the query by a related \ECP\ItemFilterType object
  *
  * @param \ECP\ItemFilterType|ObjectCollection $itemFilterType 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 filterByItemFilterType($itemFilterType, $comparison = null)
 {
     if ($itemFilterType instanceof \ECP\ItemFilterType) {
         return $this->addUsingAlias(FittingRuleRowTableMap::COL_ID, $itemFilterType->getFittingrulerowid(), $comparison);
     } elseif ($itemFilterType instanceof ObjectCollection) {
         return $this->useItemFilterTypeQuery()->filterByPrimaryKeys($itemFilterType->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByItemFilterType() only accepts arguments of type \\ECP\\ItemFilterType or Collection');
     }
 }