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

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

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

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

@param     string $editor 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 editor column