public function filterByCustomerCustomerGroup($customerCustomerGroup, $comparison = null)
    {
        if ($customerCustomerGroup instanceof \CustomerGroup\Model\CustomerCustomerGroup) {
            return $this
                ->addUsingAlias(CustomerGroupTableMap::ID, $customerCustomerGroup->getCustomerGroupId(), $comparison);
        } elseif ($customerCustomerGroup instanceof ObjectCollection) {
            return $this
                ->useCustomerCustomerGroupQuery()
                ->filterByPrimaryKeys($customerCustomerGroup->getPrimaryKeys())
                ->endUse();
        } else {
            throw new PropelException('filterByCustomerCustomerGroup() only accepts arguments of type \CustomerGroup\Model\CustomerCustomerGroup or Collection');
        }
    }
public function filterByCustomerCustomerGroup($customerCustomerGroup, $comparison = null)
    {
        if ($customerCustomerGroup instanceof \CustomerGroup\Model\CustomerCustomerGroup) {
            return $this
                ->addUsingAlias(CustomerGroupTableMap::ID, $customerCustomerGroup->getCustomerGroupId(), $comparison);
        } elseif ($customerCustomerGroup instanceof ObjectCollection) {
            return $this
                ->useCustomerCustomerGroupQuery()
                ->filterByPrimaryKeys($customerCustomerGroup->getPrimaryKeys())
                ->endUse();
        } else {
            throw new PropelException('filterByCustomerCustomerGroup() only accepts arguments of type \CustomerGroup\Model\CustomerCustomerGroup or Collection');
        }
    }
public function filterByCustomerCustomerGroup ( $ customerCustomerGroup , $ comparison = null ) { if ( $ customerCustomerGroup instanceof \ CustomerGroup \ Model \ CustomerCustomerGroup ) { return $ this -> addUsingAlias ( CustomerGroupTableMap :: ID , $ customerCustomerGroup -> getCustomerGroupId ( ) , $ comparison ) ; } elseif ( $ customerCustomerGroup instanceof ObjectCollection ) { return $ this -> useCustomerCustomerGroupQuery ( ) -> filterByPrimaryKeys ( $ customerCustomerGroup -> getPrimaryKeys ( ) ) -> endUse ( ) ; } else { throw new PropelException ( 'filterByCustomerCustomerGroup() only accepts arguments of type \CustomerGroup\Model\CustomerCustomerGroup or Collection' ) ; } }
Filter the query by a related \CustomerGroup\Model\CustomerCustomerGroup object

@param \CustomerGroup\Model\CustomerCustomerGroup|ObjectCollection $customerCustomerGroup  the related object to use as filter
@param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

@return ChildCustomerGroupQuery The current query, for fluid interface
Filter the query by a related \ CustomerGroup \ Model \ CustomerCustomerGroup object