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

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

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

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

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