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