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

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

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

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

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