当前位置: 首页>>代码示例>>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;未经允许,请勿转载。