Doctrine\ORM\Tools\Pagination\CountOutputWalker::walkSelectStatement
Walks down a SelectStatement AST node, wrapping it in a COUNT (SELECT DISTINCT)
Note that the ORDER BY clause is not removed. Many SQL implementations (e.g. MySQL) are able to cache subqueries. By keeping the ORDER BY clause intact, the limitSubQuery that will most likely be executed next can be read from the native SQL cache.
Signature
public function walkSelectStatement(SelectStatement
$AST )
Parameters
Returns
- string