Merge pull request #811 from flip111/patch-6
Update SingleScalarHydrator error message
This commit is contained in:
commit
3f883d57a6
@ -44,7 +44,7 @@ class SingleScalarHydrator extends AbstractHydrator
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($numRows > 1 || count($data[key($data)]) > 1) {
|
if ($numRows > 1 || count($data[key($data)]) > 1) {
|
||||||
throw new NonUniqueResultException();
|
throw new NonUniqueResultException('The query returned multiple rows. Change the query or use a different result function like getScalarResult().');
|
||||||
}
|
}
|
||||||
|
|
||||||
$cache = array();
|
$cache = array();
|
||||||
|
Loading…
Reference in New Issue
Block a user