当前位置: 首页>>代码示例>>PHP>>正文


PHP PropelObjectCollection::getUserId方法代码示例

本文整理汇总了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');
     }
 }
开发者ID:dapepe,项目名称:tymio,代码行数:19,代码来源:BaseUserQuery.php

示例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');
     }
 }
开发者ID:elaOnMars,项目名称:datawrapper,代码行数:19,代码来源:BaseUserQuery.php

示例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');
     }
 }
开发者ID:nhallpot,项目名称:CSCrew2015-back,代码行数:19,代码来源:BaseUserQuery.php

示例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');
     }
 }
开发者ID:homer6,项目名称:blank_altumo,代码行数:19,代码来源:BasesfGuardUserQuery.php

示例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');
     }
 }
开发者ID:homer6,项目名称:blank_altumo,代码行数:19,代码来源:BaseUserQuery.php


注:本文中的PropelObjectCollection::getUserId方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。