public function filterByZipcode($zipcode = null, $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($zipcode)) {
                $comparison = Criteria::IN;
            } elseif (preg_match('/[\%\*]/', $zipcode)) {
                $zipcode = str_replace('*', '%', $zipcode);
                $comparison = Criteria::LIKE;
            }
        }

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

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

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

@param     string $zipcode 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 ChildDealerQuery The current query, for fluid interface
Filter the query on the zipcode column