lib/Doctrine/ORM/Tools/Pagination/LimitSubqueryOutputWalker.php 1 location
|
@@ 550-555 (lines=6) @@
|
547 |
|
throw new \RuntimeException('The Paginator does not support Queries which only yield ScalarResults.'); |
548 |
|
} |
549 |
|
|
550 |
|
if (count($rootIdentifier) != count($sqlIdentifier)) { |
551 |
|
throw new \RuntimeException(sprintf( |
552 |
|
'Not all identifier properties can be found in the ResultSetMapping: %s', |
553 |
|
implode(', ', array_diff($rootIdentifier, array_keys($sqlIdentifier))) |
554 |
|
)); |
555 |
|
} |
556 |
|
|
557 |
|
return $sqlIdentifier; |
558 |
|
} |
lib/Doctrine/ORM/Tools/Pagination/CountOutputWalker.php 1 location
|
@@ 140-145 (lines=6) @@
|
137 |
|
} |
138 |
|
} |
139 |
|
|
140 |
|
if (count($rootIdentifier) != count($sqlIdentifier)) { |
141 |
|
throw new \RuntimeException(sprintf( |
142 |
|
'Not all identifier properties can be found in the ResultSetMapping: %s', |
143 |
|
implode(', ', array_diff($rootIdentifier, array_keys($sqlIdentifier))) |
144 |
|
)); |
145 |
|
} |
146 |
|
|
147 |
|
// Build the counter query |
148 |
|
return sprintf('SELECT %s AS dctrn_count FROM (SELECT DISTINCT %s FROM (%s) dctrn_result) dctrn_table', |