lib/Doctrine/ORM/Tools/Pagination/LimitSubqueryOutputWalker.php
public function walkSelectStatement(SelectStatement $AST)
    {
        if ($this->platformSupportsRowNumber()) {
            return $this->walkSelectStatementWithRowNumber($AST);
        }

        return $this->walkSelectStatementWithoutRowNumber($AST);
    }
public function walkSelectStatement(SelectStatement $AST)
    {
        if ($this->platformSupportsRowNumber()) {
            return $this->walkSelectStatementWithRowNumber($AST);
        }

        return $this->walkSelectStatementWithoutRowNumber($AST);
    }
public function walkSelectStatement ( SelectStatement $ AST ) { if ( $ this -> platformSupportsRowNumber ( ) ) { return $ this -> walkSelectStatementWithRowNumber ( $ AST ) ; } return $ this -> walkSelectStatementWithoutRowNumber ( $ AST ) ; }
Walks down a SelectStatement AST node, wrapping it in a SELECT DISTINCT.

@return string

@throws RuntimeException
Walks down a SelectStatement AST node wrapping it in a SELECT DISTINCT .