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

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

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

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

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