/** * Filter the query by a related \ContestQueue object * * @param \ContestQueue|ObjectCollection $contestQueue 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 filterByContestQueue($contestQueue, $comparison = null) { if ($contestQueue instanceof \ContestQueue) { return $this->addUsingAlias(UserTableMap::COL_ID, $contestQueue->getAssignedUserId(), $comparison); } elseif ($contestQueue instanceof ObjectCollection) { return $this->useContestQueueQuery()->filterByPrimaryKeys($contestQueue->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByContestQueue() only accepts arguments of type \\ContestQueue or Collection'); } }
/** * Exclude object from result * * @param ChildContestQueue $contestQueue Object to remove from the list of results * * @return $this|ChildContestQueueQuery The current query, for fluid interface */ public function prune($contestQueue = null) { if ($contestQueue) { $this->addUsingAlias(ContestQueueTableMap::COL_ID, $contestQueue->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * @param ChildContestQueue $contestQueue The ChildContestQueue object to add. */ protected function doAddContestQueue(ChildContestQueue $contestQueue) { $this->collContestQueues[] = $contestQueue; $contestQueue->setUser($this); }