original_string: public function filterByCustomer($customer, $comparison = null)
      {
          if ($customer instanceof \Thelia\Model\Customer) {
              return $this
                  ->addUsingAlias(CustomerCustomerGroupTableMap::CUSTOMER_ID, $customer->getId(), $comparison);
          } elseif ($customer instanceof ObjectCollection) {
              if (null === $comparison) {
                  $comparison = Criteria::IN;
              }
  
              return $this
                  ->addUsingAlias(CustomerCustomerGroupTableMap::CUSTOMER_ID, $customer->toKeyValue('PrimaryKey', 'Id'), $comparison);
          } else {
              throw new PropelException('filterByCustomer() only accepts arguments of type \Thelia\Model\Customer or Collection');
          }
      }
code: public function filterByCustomer($customer, $comparison = null)
      {
          if ($customer instanceof \Thelia\Model\Customer) {
              return $this
                  ->addUsingAlias(CustomerCustomerGroupTableMap::CUSTOMER_ID, $customer->getId(), $comparison);
          } elseif ($customer instanceof ObjectCollection) {
              if (null === $comparison) {
                  $comparison = Criteria::IN;
              }
  
              return $this
                  ->addUsingAlias(CustomerCustomerGroupTableMap::CUSTOMER_ID, $customer->toKeyValue('PrimaryKey', 'Id'), $comparison);
          } else {
              throw new PropelException('filterByCustomer() only accepts arguments of type \Thelia\Model\Customer or Collection');
          }
      }
code_tokens: public function filterByCustomer ( $ customer , $ comparison = null ) { if ( $ customer instanceof \ Thelia \ Model \ Customer ) { return $ this -> addUsingAlias ( CustomerCustomerGroupTableMap :: CUSTOMER_ID , $ customer -> getId ( ) , $ comparison ) ; } elseif ( $ customer instanceof ObjectCollection ) { if ( null === $ comparison ) { $ comparison = Criteria :: IN ; } return $ this -> addUsingAlias ( CustomerCustomerGroupTableMap :: CUSTOMER_ID , $ customer -> toKeyValue ( 'PrimaryKey' , 'Id' ) , $ comparison ) ; } else { throw new PropelException ( 'filterByCustomer() only accepts arguments of type \Thelia\Model\Customer or Collection' ) ; } }
docstring: Filter the query by a related \Thelia\Model\Customer object
  
  @param \Thelia\Model\Customer|ObjectCollection $customer The related object(s) to use as filter
  @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  
  @return ChildCustomerCustomerGroupQuery The current query, for fluid interface
docstring_tokens: Filter the query by a related \ Thelia \ Model \ Customer object