本文整理匯總了PHP中PropelObjectCollection::getUserId方法的典型用法代碼示例。如果您正苦於以下問題:PHP PropelObjectCollection::getUserId方法的具體用法?PHP PropelObjectCollection::getUserId怎麽用?PHP PropelObjectCollection::getUserId使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類PropelObjectCollection
的用法示例。
在下文中一共展示了PropelObjectCollection::getUserId方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: filterByTransactionRelatedByUserId
/**
* 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');
}
}
示例2: filterByJob
/**
* 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');
}
}
示例3: filterByhelpHour
/**
* 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');
}
}
示例4: filterBysfGuardRememberKey
/**
* 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');
}
}
示例5: filterBySystemEventInstance
/**
* 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');
}
}