/** * Filter the query by a related \Issues object * * @param \Issues|ObjectCollection $issues 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 ChildContributionsQuery The current query, for fluid interface */ public function filterByIssues($issues, $comparison = null) { if ($issues instanceof \Issues) { return $this->addUsingAlias(ContributionsTableMap::COL__FORISSUE, $issues->getId(), $comparison); } elseif ($issues instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(ContributionsTableMap::COL__FORISSUE, $issues->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByIssues() only accepts arguments of type \\Issues or Collection'); } }