本文整理匯總了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');
}
}