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

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

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

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

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