/** * Filter the query by a related \RRightsForissue object * * @param \RRightsForissue|ObjectCollection $rRightsForissue the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildIssuesQuery The current query, for fluid interface */ public function filterByRRightsForissue($rRightsForissue, $comparison = null) { if ($rRightsForissue instanceof \RRightsForissue) { return $this->addUsingAlias(IssuesTableMap::COL_ID, $rRightsForissue->getIssueid(), $comparison); } elseif ($rRightsForissue instanceof ObjectCollection) { return $this->useRRightsForissueQuery()->filterByPrimaryKeys($rRightsForissue->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByRRightsForissue() only accepts arguments of type \\RRightsForissue or Collection'); } }