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

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

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

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

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