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

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

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

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

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