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

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

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

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

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