當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。