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