/**
  * 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');
     }
 }
Exemplo n.º 2
0
 /**
  * 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');
     }
 }
Exemplo n.º 3
0
 /**
  * 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');
     }
 }
 /**
  * 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');
     }
 }