本文整理汇总了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');
}
}
示例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');
}
}
示例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');
}
}
示例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');
}
}