src/Slashworks/BackendBundle/Model/om/BaseSystemSettingsQuery.php
public function filterByKey($key = null, $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($key)) {
                $comparison = Criteria::IN;
            } elseif (preg_match('/[\%\*]/', $key)) {
                $key = str_replace('*', '%', $key);
                $comparison = Criteria::LIKE;
            }
        }

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

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

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

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