/** * Filter the query by a related Transaction object * * @param Transaction|PropelObjectCollection $transaction the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return UserQuery The current query, for fluid interface * @throws PropelException - if the provided filter is invalid. */ public function filterByTransactionRelatedByUserId($transaction, $comparison = null) { if ($transaction instanceof Transaction) { return $this->addUsingAlias(UserPeer::ID, $transaction->getUserId(), $comparison); } elseif ($transaction instanceof PropelObjectCollection) { return $this->useTransactionRelatedByUserIdQuery()->filterByPrimaryKeys($transaction->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByTransactionRelatedByUserId() only accepts arguments of type Transaction or PropelCollection'); } }
/** * Filter the query by a related Job object * * @param Job|PropelObjectCollection $job the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return UserQuery The current query, for fluid interface * @throws PropelException - if the provided filter is invalid. */ public function filterByJob($job, $comparison = null) { if ($job instanceof Job) { return $this->addUsingAlias(UserPeer::ID, $job->getUserId(), $comparison); } elseif ($job instanceof PropelObjectCollection) { return $this->useJobQuery()->filterByPrimaryKeys($job->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByJob() only accepts arguments of type Job or PropelCollection'); } }
/** * Filter the query by a related helpHour object * * @param helpHour|PropelObjectCollection $helpHour the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return UserQuery The current query, for fluid interface * @throws PropelException - if the provided filter is invalid. */ public function filterByhelpHour($helpHour, $comparison = null) { if ($helpHour instanceof helpHour) { return $this->addUsingAlias(UserPeer::ID, $helpHour->getUserId(), $comparison); } elseif ($helpHour instanceof PropelObjectCollection) { return $this->usehelpHourQuery()->filterByPrimaryKeys($helpHour->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByhelpHour() only accepts arguments of type helpHour or PropelCollection'); } }
/** * Filter the query by a related sfGuardRememberKey object * * @param sfGuardRememberKey|PropelObjectCollection $sfGuardRememberKey the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return sfGuardUserQuery The current query, for fluid interface * @throws PropelException - if the provided filter is invalid. */ public function filterBysfGuardRememberKey($sfGuardRememberKey, $comparison = null) { if ($sfGuardRememberKey instanceof sfGuardRememberKey) { return $this->addUsingAlias(sfGuardUserPeer::ID, $sfGuardRememberKey->getUserId(), $comparison); } elseif ($sfGuardRememberKey instanceof PropelObjectCollection) { return $this->usesfGuardRememberKeyQuery()->filterByPrimaryKeys($sfGuardRememberKey->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterBysfGuardRememberKey() only accepts arguments of type sfGuardRememberKey or PropelCollection'); } }
/** * Filter the query by a related SystemEventInstance object * * @param SystemEventInstance|PropelObjectCollection $systemEventInstance the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return UserQuery The current query, for fluid interface * @throws PropelException - if the provided filter is invalid. */ public function filterBySystemEventInstance($systemEventInstance, $comparison = null) { if ($systemEventInstance instanceof SystemEventInstance) { return $this->addUsingAlias(UserPeer::ID, $systemEventInstance->getUserId(), $comparison); } elseif ($systemEventInstance instanceof PropelObjectCollection) { return $this->useSystemEventInstanceQuery()->filterByPrimaryKeys($systemEventInstance->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterBySystemEventInstance() only accepts arguments of type SystemEventInstance or PropelCollection'); } }