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

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

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

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

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