本文整理汇总了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');
}
}