src/Slashworks/AppBundle/Model/om/BaseCustomerQuery.php
public function filterByFax($fax = null, $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($fax)) {
                $comparison = Criteria::IN;
            } elseif (preg_match('/[\%\*]/', $fax)) {
                $fax = str_replace('*', '%', $fax);
                $comparison = Criteria::LIKE;
            }
        }

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

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

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

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