當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ObjectCollection::getGroupId方法代碼示例

本文整理匯總了PHP中Propel\Runtime\Collection\ObjectCollection::getGroupId方法的典型用法代碼示例。如果您正苦於以下問題:PHP ObjectCollection::getGroupId方法的具體用法?PHP ObjectCollection::getGroupId怎麽用?PHP ObjectCollection::getGroupId使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Propel\Runtime\Collection\ObjectCollection的用法示例。


在下文中一共展示了ObjectCollection::getGroupId方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: filterByAdminCredential

 /**
  * Filter the query by a related \App\Models\AdminCredential object
  *
  * @param \App\Models\AdminCredential|ObjectCollection $adminCredential the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildAdminCredentialGroupQuery The current query, for fluid interface
  */
 public function filterByAdminCredential($adminCredential, $comparison = null)
 {
     if ($adminCredential instanceof \App\Models\AdminCredential) {
         return $this->addUsingAlias(AdminCredentialGroupTableMap::COL_ID, $adminCredential->getGroupId(), $comparison);
     } elseif ($adminCredential instanceof ObjectCollection) {
         return $this->useAdminCredentialQuery()->filterByPrimaryKeys($adminCredential->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByAdminCredential() only accepts arguments of type \\App\\Models\\AdminCredential or Collection');
     }
 }
開發者ID:nstojanovickg,項目名稱:diplomski,代碼行數:18,代碼來源:AdminCredentialGroupQuery.php

示例2: filterByGroupAction

 /**
  * Filter the query by a related \keeko\core\model\GroupAction object
  *
  * @param \keeko\core\model\GroupAction|ObjectCollection $groupAction the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildGroupQuery The current query, for fluid interface
  */
 public function filterByGroupAction($groupAction, $comparison = null)
 {
     if ($groupAction instanceof \keeko\core\model\GroupAction) {
         return $this->addUsingAlias(GroupTableMap::COL_ID, $groupAction->getGroupId(), $comparison);
     } elseif ($groupAction instanceof ObjectCollection) {
         return $this->useGroupActionQuery()->filterByPrimaryKeys($groupAction->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByGroupAction() only accepts arguments of type \\keeko\\core\\model\\GroupAction or Collection');
     }
 }
開發者ID:keeko,項目名稱:core,代碼行數:18,代碼來源:GroupQuery.php

示例3: 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 ChildGroupQuery The current query, for fluid interface
  */
 public function filterByUserGroup($userGroup, $comparison = null)
 {
     if ($userGroup instanceof \Models\UserGroup) {
         return $this->addUsingAlias(GroupTableMap::COL_ID, $userGroup->getGroupId(), $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:OneTimeCZ,項目名稱:Tasker,代碼行數:18,代碼來源:GroupQuery.php

示例4: filterByPermissionGroupUser

 /**
  * Filter the query by a related \Tekstove\ApiBundle\Model\Acl\PermissionGroupUser object
  *
  * @param \Tekstove\ApiBundle\Model\Acl\PermissionGroupUser|ObjectCollection $permissionGroupUser the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildPermissionGroupQuery The current query, for fluid interface
  */
 public function filterByPermissionGroupUser($permissionGroupUser, $comparison = null)
 {
     if ($permissionGroupUser instanceof \Tekstove\ApiBundle\Model\Acl\PermissionGroupUser) {
         return $this->addUsingAlias(PermissionGroupTableMap::COL_ID, $permissionGroupUser->getGroupId(), $comparison);
     } elseif ($permissionGroupUser instanceof ObjectCollection) {
         return $this->usePermissionGroupUserQuery()->filterByPrimaryKeys($permissionGroupUser->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByPermissionGroupUser() only accepts arguments of type \\Tekstove\\ApiBundle\\Model\\Acl\\PermissionGroupUser or Collection');
     }
 }
開發者ID:Tekstove,項目名稱:Tekstove-api,代碼行數:18,代碼來源:PermissionGroupQuery.php


注:本文中的Propel\Runtime\Collection\ObjectCollection::getGroupId方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。