/** * Exclude object from result * * @param ChildAuthToken $authToken Object to remove from the list of results * * @return $this|ChildAuthTokenQuery The current query, for fluid interface */ public function prune($authToken = null) { if ($authToken) { $this->addUsingAlias(AuthTokenTableMap::COL_ID, $authToken->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * @param ChildAuthToken $authToken The ChildAuthToken object to add. */ protected function doAddAuthToken(ChildAuthToken $authToken) { $this->collAuthTokens[] = $authToken; $authToken->setuser($this); }
/** * 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'); } }