/** * Exclude object from result * * @param ChildFittingRuleRow $fittingRuleRow Object to remove from the list of results * * @return $this|ChildFittingRuleRowQuery The current query, for fluid interface */ public function prune($fittingRuleRow = null) { if ($fittingRuleRow) { $this->addUsingAlias(FittingRuleRowTableMap::COL_ID, $fittingRuleRow->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * Declares an association between this object and a ChildFittingRuleRow object. * * @param ChildFittingRuleRow $v * @return $this|\ECP\ItemFilterRule The current object (for fluent API support) * @throws PropelException */ public function setFittingRuleRow(ChildFittingRuleRow $v = null) { if ($v === null) { $this->setFittingrulerowid(NULL); } else { $this->setFittingrulerowid($v->getId()); } $this->aFittingRuleRow = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildFittingRuleRow object, it will not be re-added. if ($v !== null) { $v->addItemFilterRule($this); } return $this; }
/** * Filter the query by a related \ECP\FittingRuleRow object * * @param \ECP\FittingRuleRow|ObjectCollection $fittingRuleRow 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 ChildItemFilterTypeQuery The current query, for fluid interface */ public function filterByFittingRuleRow($fittingRuleRow, $comparison = null) { if ($fittingRuleRow instanceof \ECP\FittingRuleRow) { return $this->addUsingAlias(ItemFilterTypeTableMap::COL_FITTINGRULEROWID, $fittingRuleRow->getId(), $comparison); } elseif ($fittingRuleRow instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(ItemFilterTypeTableMap::COL_FITTINGRULEROWID, $fittingRuleRow->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByFittingRuleRow() only accepts arguments of type \\ECP\\FittingRuleRow or Collection'); } }