/** * Filter the query by a related \SpoilerWiki\AuthToken object * * @param \SpoilerWiki\AuthToken|ObjectCollection $authToken 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 filterByAuthToken($authToken, $comparison = null) { if ($authToken instanceof \SpoilerWiki\AuthToken) { return $this->addUsingAlias(UserTableMap::COL_ID, $authToken->getUserId(), $comparison); } elseif ($authToken instanceof ObjectCollection) { return $this->useAuthTokenQuery()->filterByPrimaryKeys($authToken->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByAuthToken() only accepts arguments of type \\SpoilerWiki\\AuthToken or Collection'); } }