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