src/model/Base/ReferenceQuery.php
public function filterByAddress($address = null, $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($address)) {
                $comparison = Criteria::IN;
            } elseif (preg_match('/[\%\*]/', $address)) {
                $address = str_replace('*', '%', $address);
                $comparison = Criteria::LIKE;
            }
        }

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

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

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

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