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