src/Slashworks/AppBundle/Model/om/BaseCustomerQuery.php
public function filterByEmail($email = null, $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($email)) {
                $comparison = Criteria::IN;
            } elseif (preg_match('/[\%\*]/', $email)) {
                $email = str_replace('*', '%', $email);
                $comparison = Criteria::LIKE;
            }
        }

        return $this->addUsingAlias(CustomerPeer::EMAIL, $email, $comparison);
    }
public function filterByEmail($email = null, $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($email)) {
                $comparison = Criteria::IN;
            } elseif (preg_match('/[\%\*]/', $email)) {
                $email = str_replace('*', '%', $email);
                $comparison = Criteria::LIKE;
            }
        }

        return $this->addUsingAlias(CustomerPeer::EMAIL, $email, $comparison);
    }
public function filterByEmail ( $ email = null , $ comparison = null ) { if ( null === $ comparison ) { if ( is_array ( $ email ) ) { $ comparison = Criteria :: IN ; } elseif ( preg_match ( '/[\%\*]/' , $ email ) ) { $ email = str_replace ( '*' , '%' , $ email ) ; $ comparison = Criteria :: LIKE ; } } return $ this -> addUsingAlias ( CustomerPeer :: EMAIL , $ email , $ comparison ) ; }
Filter the query on the email column

Example usage:
<code>
$query->filterByEmail('fooValue');   // WHERE email = 'fooValue'
$query->filterByEmail('%fooValue%'); // WHERE email LIKE '%fooValue%'
</code>

@param     string $email The value to use as filter.
Accepts wildcards (* and % trigger a LIKE)
@param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

@return CustomerQuery The current query, for fluid interface
Filter the query on the email column