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

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

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

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

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