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


PHP ObjectCollection::getUserId方法代码示例

本文整理汇总了PHP中Propel\Runtime\Collection\ObjectCollection::getUserId方法的典型用法代码示例。如果您正苦于以下问题:PHP ObjectCollection::getUserId方法的具体用法?PHP ObjectCollection::getUserId怎么用?PHP ObjectCollection::getUserId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Propel\Runtime\Collection\ObjectCollection的用法示例。


在下文中一共展示了ObjectCollection::getUserId方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: filterByCreator

 /**
  * Filter the query by a related \User object
  *
  * @param \User|ObjectCollection $user The related object(s) to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @throws \Propel\Runtime\Exception\PropelException
  *
  * @return ChildEventQuery The current query, for fluid interface
  */
 public function filterByCreator($user, $comparison = null)
 {
     if ($user instanceof \User) {
         return $this->addUsingAlias(EventTableMap::COL_CREATOR_USER_ID, $user->getUserId(), $comparison);
     } elseif ($user instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(EventTableMap::COL_CREATOR_USER_ID, $user->toKeyValue('PrimaryKey', 'UserId'), $comparison);
     } else {
         throw new PropelException('filterByCreator() only accepts arguments of type \\User or Collection');
     }
 }
开发者ID:Web-Systems-Development-Team,项目名称:RPIwannahangout,代码行数:23,代码来源:EventQuery.php

示例2: filterByUserGroup

 /**
  * Filter the query by a related \Models\UserGroup object
  *
  * @param \Models\UserGroup|ObjectCollection $userGroup the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildUserQuery The current query, for fluid interface
  */
 public function filterByUserGroup($userGroup, $comparison = null)
 {
     if ($userGroup instanceof \Models\UserGroup) {
         return $this->addUsingAlias(UserTableMap::COL_ID, $userGroup->getUserId(), $comparison);
     } elseif ($userGroup instanceof ObjectCollection) {
         return $this->useUserGroupQuery()->filterByPrimaryKeys($userGroup->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByUserGroup() only accepts arguments of type \\Models\\UserGroup or Collection');
     }
 }
开发者ID:xfreddiex,项目名称:code-sharer,代码行数:18,代码来源:UserQuery.php

示例3: filterByBet

 /**
  * Filter the query by a related \ApostaAiApi\Models\Bet object
  *
  * @param \ApostaAiApi\Models\Bet|ObjectCollection $bet the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildUserQuery The current query, for fluid interface
  */
 public function filterByBet($bet, $comparison = null)
 {
     if ($bet instanceof \ApostaAiApi\Models\Bet) {
         return $this->addUsingAlias(UserTableMap::COL_ID, $bet->getUserId(), $comparison);
     } elseif ($bet instanceof ObjectCollection) {
         return $this->useBetQuery()->filterByPrimaryKeys($bet->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByBet() only accepts arguments of type \\ApostaAiApi\\Models\\Bet or Collection');
     }
 }
开发者ID:amandaaurita,项目名称:hackapuc2015,代码行数:18,代码来源:UserQuery.php

示例4: filterByTourQuery

 /**
  * Filter the query by a related \TourQuery object
  *
  * @param \TourQuery|ObjectCollection $tourQuery the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildUserQuery The current query, for fluid interface
  */
 public function filterByTourQuery($tourQuery, $comparison = null)
 {
     if ($tourQuery instanceof \TourQuery) {
         return $this->addUsingAlias(UserTableMap::COL_ID, $tourQuery->getUserId(), $comparison);
     } elseif ($tourQuery instanceof ObjectCollection) {
         return $this->useTourQueryQuery()->filterByPrimaryKeys($tourQuery->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByTourQuery() only accepts arguments of type \\TourQuery or Collection');
     }
 }
开发者ID:sh6210,项目名称:travel,代码行数:18,代码来源:UserQuery.php

示例5: filterByUserRelatedBySocialRecommendationTo

 /**
  * Filter the query by a related \App\Propel\User object
  *
  * @param \App\Propel\User|ObjectCollection $user The related object(s) to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @throws \Propel\Runtime\Exception\PropelException
  *
  * @return ChildSocialRecommendationQuery The current query, for fluid interface
  */
 public function filterByUserRelatedBySocialRecommendationTo($user, $comparison = null)
 {
     if ($user instanceof \App\Propel\User) {
         return $this->addUsingAlias(SocialRecommendationTableMap::COL_SOCIAL_RECOMMENDATION_TO, $user->getUserId(), $comparison);
     } elseif ($user instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(SocialRecommendationTableMap::COL_SOCIAL_RECOMMENDATION_TO, $user->toKeyValue('PrimaryKey', 'UserId'), $comparison);
     } else {
         throw new PropelException('filterByUserRelatedBySocialRecommendationTo() only accepts arguments of type \\App\\Propel\\User or Collection');
     }
 }
开发者ID:mtornero,项目名称:slowshop,代码行数:23,代码来源:SocialRecommendationQuery.php

示例6: filterByItems

 /**
  * Filter the query by a related \Items object
  *
  * @param \Items|ObjectCollection $items the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildUserQuery The current query, for fluid interface
  */
 public function filterByItems($items, $comparison = null)
 {
     if ($items instanceof \Items) {
         return $this->addUsingAlias(UserTableMap::COL_USER_ID, $items->getUserId(), $comparison);
     } elseif ($items instanceof ObjectCollection) {
         return $this->useItemsQuery()->filterByPrimaryKeys($items->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByItems() only accepts arguments of type \\Items or Collection');
     }
 }
开发者ID:aroradhruv03,项目名称:Web-Proj,代码行数:18,代码来源:UserQuery.php

示例7: filterByAssignedRole

 /**
  * Filter the query by a related \SpoilerWiki\AssignedRole object
  *
  * @param \SpoilerWiki\AssignedRole|ObjectCollection $assignedRole the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildRoleQuery The current query, for fluid interface
  */
 public function filterByAssignedRole($assignedRole, $comparison = null)
 {
     if ($assignedRole instanceof \SpoilerWiki\AssignedRole) {
         return $this->addUsingAlias(RoleTableMap::COL_ID, $assignedRole->getUserId(), $comparison);
     } elseif ($assignedRole instanceof ObjectCollection) {
         return $this->useAssignedRoleQuery()->filterByPrimaryKeys($assignedRole->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByAssignedRole() only accepts arguments of type \\SpoilerWiki\\AssignedRole or Collection');
     }
 }
开发者ID:sam-higton,项目名称:spoiler-wiki,代码行数:18,代码来源:RoleQuery.php

示例8: filterByNotification

 /**
  * Filter the query by a related \ORM\NotificationOnUser object
  *
  * @param \ORM\NotificationOnUser|ObjectCollection $notificationOnUser  the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildUserQuery The current query, for fluid interface
  */
 public function filterByNotification($notificationOnUser, $comparison = null)
 {
     if ($notificationOnUser instanceof \ORM\NotificationOnUser) {
         return $this->addUsingAlias(UserTableMap::COL_ID, $notificationOnUser->getUserId(), $comparison);
     } elseif ($notificationOnUser instanceof ObjectCollection) {
         return $this->useNotificationQuery()->filterByPrimaryKeys($notificationOnUser->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByNotification() only accepts arguments of type \\ORM\\NotificationOnUser or Collection');
     }
 }
开发者ID:AlvaCorp,项目名称:POS-2,代码行数:18,代码来源:UserQuery.php

示例9: filterByArtist

 /**
  * Filter the query by a related \Tekstove\ApiBundle\Model\Artist object
  *
  * @param \Tekstove\ApiBundle\Model\Artist|ObjectCollection $artist the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildUserQuery The current query, for fluid interface
  */
 public function filterByArtist($artist, $comparison = null)
 {
     if ($artist instanceof \Tekstove\ApiBundle\Model\Artist) {
         return $this->addUsingAlias(UserTableMap::COL_ID, $artist->getUserId(), $comparison);
     } elseif ($artist instanceof ObjectCollection) {
         return $this->useArtistQuery()->filterByPrimaryKeys($artist->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByArtist() only accepts arguments of type \\Tekstove\\ApiBundle\\Model\\Artist or Collection');
     }
 }
开发者ID:Tekstove,项目名称:Tekstove-api,代码行数:18,代码来源:UserQuery.php

示例10: filterByUserRole

 /**
  * Filter the query by a related \Alchemy\Component\Cerberus\Model\UserRole object
  *
  * @param \Alchemy\Component\Cerberus\Model\UserRole|ObjectCollection $userRole  the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildUserQuery The current query, for fluid interface
  */
 public function filterByUserRole($userRole, $comparison = null)
 {
     if ($userRole instanceof \Alchemy\Component\Cerberus\Model\UserRole) {
         return $this->addUsingAlias(UserTableMap::COL_ID, $userRole->getUserId(), $comparison);
     } elseif ($userRole instanceof ObjectCollection) {
         return $this->useUserRoleQuery()->filterByPrimaryKeys($userRole->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByUserRole() only accepts arguments of type \\Alchemy\\Component\\Cerberus\\Model\\UserRole or Collection');
     }
 }
开发者ID:phpalchemy,项目名称:cerberus,代码行数:18,代码来源:UserQuery.php

示例11: filterByWishlist

 /**
  * Filter the query by a related \App\Propel\Wishlist object
  *
  * @param \App\Propel\Wishlist|ObjectCollection $wishlist the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildUserQuery The current query, for fluid interface
  */
 public function filterByWishlist($wishlist, $comparison = null)
 {
     if ($wishlist instanceof \App\Propel\Wishlist) {
         return $this->addUsingAlias(UserTableMap::COL_USER_ID, $wishlist->getUserId(), $comparison);
     } elseif ($wishlist instanceof ObjectCollection) {
         return $this->useWishlistQuery()->filterByPrimaryKeys($wishlist->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByWishlist() only accepts arguments of type \\App\\Propel\\Wishlist or Collection');
     }
 }
开发者ID:mtornero,项目名称:slowshop,代码行数:18,代码来源:UserQuery.php

示例12: filterBySubscription

 /**
  * Filter the query by a related \Jalle19\StatusManager\Database\Subscription object
  *
  * @param \Jalle19\StatusManager\Database\Subscription|ObjectCollection $subscription the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildUserQuery The current query, for fluid interface
  */
 public function filterBySubscription($subscription, $comparison = null)
 {
     if ($subscription instanceof \Jalle19\StatusManager\Database\Subscription) {
         return $this->addUsingAlias(UserTableMap::COL_ID, $subscription->getUserId(), $comparison);
     } elseif ($subscription instanceof ObjectCollection) {
         return $this->useSubscriptionQuery()->filterByPrimaryKeys($subscription->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterBySubscription() only accepts arguments of type \\Jalle19\\StatusManager\\Database\\Subscription or Collection');
     }
 }
开发者ID:Jalle19,项目名称:tvheadend-status-manager,代码行数:18,代码来源:UserQuery.php


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