propel/generated-classes/Base/ProfileQuery.php
/**
     * Filter the query on the gender column
     *
     * @param     mixed $gender The value to use as filter
     * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return ChildProfileQuery The current query, for fluid interface
     */
Filter the query on the gender column
@param     mixed $gender The value to use as filter
@param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

@return ChildProfileQuery The current query, for fluid interface
Filter the query on the gender column @param mixed $gender The value to use as filter @param string $comparison Operator to use for the column comparison defaults to Criteria :: EQUAL @return ChildProfileQuery The current query for fluid interface
public function filterByGender($gender = null, $comparison = null)
    {
        $valueSet = ProfileTableMap::getValueSet(ProfileTableMap::GENDER);
        if (is_scalar($gender)) {
            if (!in_array($gender, $valueSet)) {
                throw new PropelException(sprintf('Value "%s" is not accepted in this enumerated column', $gender));
            }
            $gender = array_search($gender, $valueSet);
        } elseif (is_array($gender)) {
            $convertedValues = array();
            foreach ($gender as $value) {
                if (!in_array($value, $valueSet)) {
                    throw new PropelException(sprintf('Value "%s" is not accepted in this enumerated column', $value));
                }
                $convertedValues []= array_search($value, $valueSet);
            }
            $gender = $convertedValues;
            if (null === $comparison) {
                $comparison = Criteria::IN;
            }
        }
        return $this->addUsingAlias(ProfileTableMap::GENDER, $gender, $comparison);
    }
public function filterByGender ( $ gender = null , $ comparison = null ) { $ valueSet = ProfileTableMap :: getValueSet ( ProfileTableMap :: GENDER ) ; if ( is_scalar ( $ gender ) ) { if ( ! in_array ( $ gender , $ valueSet ) ) { throw new PropelException ( sprintf ( 'Value "%s" is not accepted in this enumerated column' , $ gender ) ) ; } $ gender = array_search ( $ gender , $ valueSet ) ; } elseif ( is_array ( $ gender ) ) { $ convertedValues = array ( ) ; foreach ( $ gender as $ value ) { if ( ! in_array ( $ value , $ valueSet ) ) { throw new PropelException ( sprintf ( 'Value "%s" is not accepted in this enumerated column' , $ value ) ) ; } $ convertedValues [ ] = array_search ( $ value , $ valueSet ) ; } $ gender = $ convertedValues ; if ( null === $ comparison ) { $ comparison = Criteria :: IN ; } } return $ this -> addUsingAlias ( ProfileTableMap :: GENDER , $ gender , $ comparison ) ; }
Filter the query on the gender column
 @param     mixed $gender The value to use as filter
 @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
Filter the query on the gender column @param mixed $gender The value to use as filter @param string $comparison Operator to use for the column comparison defaults to Criteria :: EQUAL