src/Eccube/Doctrine/ORM/Tools/Pagination/CountOutputWalker.php 1 location
|
@@ 126-131 (lines=6) @@
|
| 123 |
|
} |
| 124 |
|
} |
| 125 |
|
|
| 126 |
|
if (count($rootIdentifier) != count($sqlIdentifier)) { |
| 127 |
|
throw new \RuntimeException(sprintf( |
| 128 |
|
'Not all identifier properties can be found in the ResultSetMapping: %s', |
| 129 |
|
implode(', ', array_diff($rootIdentifier, array_keys($sqlIdentifier))) |
| 130 |
|
)); |
| 131 |
|
} |
| 132 |
|
|
| 133 |
|
// Build the counter query |
| 134 |
|
return sprintf('SELECT %s AS dctrn_count FROM (SELECT DISTINCT %s FROM (%s) dctrn_result) dctrn_table', |
src/Eccube/Doctrine/ORM/Tools/Pagination/LimitSubqueryOutputWalker.php 1 location
|
@@ 570-575 (lines=6) @@
|
| 567 |
|
throw new \RuntimeException('The Paginator does not support Queries which only yield ScalarResults.'); |
| 568 |
|
} |
| 569 |
|
|
| 570 |
|
if (count($rootIdentifier) != count($sqlIdentifier)) { |
| 571 |
|
throw new \RuntimeException(sprintf( |
| 572 |
|
'Not all identifier properties can be found in the ResultSetMapping: %s', |
| 573 |
|
implode(', ', array_diff($rootIdentifier, array_keys($sqlIdentifier))) |
| 574 |
|
)); |
| 575 |
|
} |
| 576 |
|
|
| 577 |
|
return $sqlIdentifier; |
| 578 |
|
} |