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', |
lib/Doctrine/ORM/Tools/Pagination/LimitSubqueryOutputWalker.php 1 location
|
@@ 566-571 (lines=6) @@
|
| 563 |
|
throw new \RuntimeException('The Paginator does not support Queries which only yield ScalarResults.'); |
| 564 |
|
} |
| 565 |
|
|
| 566 |
|
if (count($rootIdentifier) != count($sqlIdentifier)) { |
| 567 |
|
throw new \RuntimeException(sprintf( |
| 568 |
|
'Not all identifier properties can be found in the ResultSetMapping: %s', |
| 569 |
|
implode(', ', array_diff($rootIdentifier, array_keys($sqlIdentifier))) |
| 570 |
|
)); |
| 571 |
|
} |
| 572 |
|
|
| 573 |
|
return $sqlIdentifier; |
| 574 |
|
} |