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

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

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

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

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