public function filterByCommentscount($commentscount = null, $comparison = null)
    {
        if (is_array($commentscount)) {
            $useMinMax = false;
            if (isset($commentscount['min'])) {
                $this->addUsingAlias(MxmapTableMap::COL_COMMENTSCOUNT, $commentscount['min'], Criteria::GREATER_EQUAL);
                $useMinMax = true;
            }
            if (isset($commentscount['max'])) {
                $this->addUsingAlias(MxmapTableMap::COL_COMMENTSCOUNT, $commentscount['max'], Criteria::LESS_EQUAL);
                $useMinMax = true;
            }
            if ($useMinMax) {
                return $this;
            }
            if (null === $comparison) {
                $comparison = Criteria::IN;
            }
        }

        return $this->addUsingAlias(MxmapTableMap::COL_COMMENTSCOUNT, $commentscount, $comparison);
    }
public function filterByCommentscount($commentscount = null, $comparison = null)
    {
        if (is_array($commentscount)) {
            $useMinMax = false;
            if (isset($commentscount['min'])) {
                $this->addUsingAlias(MxmapTableMap::COL_COMMENTSCOUNT, $commentscount['min'], Criteria::GREATER_EQUAL);
                $useMinMax = true;
            }
            if (isset($commentscount['max'])) {
                $this->addUsingAlias(MxmapTableMap::COL_COMMENTSCOUNT, $commentscount['max'], Criteria::LESS_EQUAL);
                $useMinMax = true;
            }
            if ($useMinMax) {
                return $this;
            }
            if (null === $comparison) {
                $comparison = Criteria::IN;
            }
        }

        return $this->addUsingAlias(MxmapTableMap::COL_COMMENTSCOUNT, $commentscount, $comparison);
    }
public function filterByCommentscount ( $ commentscount = null , $ comparison = null ) { if ( is_array ( $ commentscount ) ) { $ useMinMax = false ; if ( isset ( $ commentscount [ 'min' ] ) ) { $ this -> addUsingAlias ( MxmapTableMap :: COL_COMMENTSCOUNT , $ commentscount [ 'min' ] , Criteria :: GREATER_EQUAL ) ; $ useMinMax = true ; } if ( isset ( $ commentscount [ 'max' ] ) ) { $ this -> addUsingAlias ( MxmapTableMap :: COL_COMMENTSCOUNT , $ commentscount [ 'max' ] , Criteria :: LESS_EQUAL ) ; $ useMinMax = true ; } if ( $ useMinMax ) { return $ this ; } if ( null === $ comparison ) { $ comparison = Criteria :: IN ; } } return $ this -> addUsingAlias ( MxmapTableMap :: COL_COMMENTSCOUNT , $ commentscount , $ comparison ) ; }
Filter the query on the commentsCount column

Example usage:
<code>
$query->filterByCommentscount(1234); // WHERE commentsCount = 1234
$query->filterByCommentscount(array(12, 34)); // WHERE commentsCount IN (12, 34)
$query->filterByCommentscount(array('min' => 12)); // WHERE commentsCount > 12
</code>

@param     mixed $commentscount The value to use as filter.
Use scalar values for equality.
Use array values for in_array() equivalent.
Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
@param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

@return $this|ChildMxmapQuery The current query, for fluid interface
Filter the query on the commentsCount column