1
0
mirror of synced 2025-03-22 07:53:49 +03:00

Merge pull request #793 from flip111/patch-2

Improved error messages in Paginator: LimitSubqueryOutputWalker
This commit is contained in:
Guilherme Blanco 2013-09-30 11:07:49 -07:00
commit d8335eee7b

View File

@ -149,6 +149,10 @@ class LimitSubqueryOutputWalker extends SqlWalker
}
}
if (count($sqlIdentifier) === 0) {
throw new \RuntimeException('The Paginator does not support Queries which only yield ScalarResults.');
}
if (count($rootIdentifier) != count($sqlIdentifier)) {
throw new \RuntimeException(sprintf(
'Not all identifier properties can be found in the ResultSetMapping: %s',