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