lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
protected function doModifyLimitQuery($query, $limit, $offset)
    {
        if ($limit !== null) {
            $query .= ' LIMIT ' . $limit;
        }

        if ($offset > 0) {
            $query .= ' OFFSET ' . $offset;
        }

        return $query;
    }
protected function doModifyLimitQuery($query, $limit, $offset)
    {
        if ($limit !== null) {
            $query .= ' LIMIT ' . $limit;
        }

        if ($offset > 0) {
            $query .= ' OFFSET ' . $offset;
        }

        return $query;
    }
protected function doModifyLimitQuery ( $ query , $ limit , $ offset ) { if ( $ limit !== null ) { $ query .= ' LIMIT ' . $ limit ; } if ( $ offset > 0 ) { $ query .= ' OFFSET ' . $ offset ; } return $ query ; }
Adds an platform-specific LIMIT clause to the query.

@param string   $query
@param int|null $limit
@param int|null $offset

@return string
Adds an platform - specific LIMIT clause to the query .