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
|
@@ 554-559 (lines=6) @@
|
| 551 |
|
throw new \RuntimeException('The Paginator does not support Queries which only yield ScalarResults.'); |
| 552 |
|
} |
| 553 |
|
|
| 554 |
|
if (count($rootIdentifier) != count($sqlIdentifier)) { |
| 555 |
|
throw new \RuntimeException(sprintf( |
| 556 |
|
'Not all identifier properties can be found in the ResultSetMapping: %s', |
| 557 |
|
implode(', ', array_diff($rootIdentifier, array_keys($sqlIdentifier))) |
| 558 |
|
)); |
| 559 |
|
} |
| 560 |
|
|
| 561 |
|
return $sqlIdentifier; |
| 562 |
|
} |