/** * 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'); } }
/** * Filter the query by a related \ECP\RulesetRuleRow object * * @param \ECP\RulesetRuleRow|ObjectCollection $rulesetRuleRow the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildRulesetEntityQuery The current query, for fluid interface */ public function filterByRulesetRuleRow($rulesetRuleRow, $comparison = null) { if ($rulesetRuleRow instanceof \ECP\RulesetRuleRow) { return $this->addUsingAlias(RulesetEntityTableMap::COL_ID, $rulesetRuleRow->getRulesetentityid(), $comparison); } elseif ($rulesetRuleRow instanceof ObjectCollection) { return $this->useRulesetRuleRowQuery()->filterByPrimaryKeys($rulesetRuleRow->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByRulesetRuleRow() only accepts arguments of type \\ECP\\RulesetRuleRow or Collection'); } }
/** * Clears the current object, sets all attributes to their default values and removes * outgoing references as well as back-references (from other objects to this one. Results probably in a database * change of those foreign objects when you call `save` there). */ public function clear() { if (null !== $this->aRulesetRuleRow) { $this->aRulesetRuleRow->removeRulesetFilterRule($this); } if (null !== $this->aconcatenationObj) { $this->aconcatenationObj->removeRulesetFilterRuleRelatedByConcatenation($this); } if (null !== $this->aFittingRuleEntity) { $this->aFittingRuleEntity->removeRulesetFilterRule($this); } if (null !== $this->acomparisonObj) { $this->acomparisonObj->removeRulesetFilterRuleRelatedByComparison($this); } $this->id = null; $this->rulesetrulerowid = null; $this->ind3x = null; $this->concatenation = null; $this->fittingruleentityid = null; $this->comparison = null; $this->value = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * 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; }