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

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

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

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

@param     string $city 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 city column