Wraps the query in order to accurately count the root objects.
Given a DQL like
SELECT u FROM User u it will generate an SQL
query like: SELECT COUNT(*) (SELECT DISTINCT <id> FROM (<original
Works with composite keys but cannot deal with queries that have multiple
root entities (e.g.
SELECT f, b from Foo, Bar)
- Doctrine\ORM\Query\SqlWalker implements Doctrine\ORM\Query\TreeWalker
Author: Sander Marechal <email@example.com>
Located at ORM/Tools/Pagination/CountOutputWalker.php