Update SingleScalarHydrator error message
bummed into this one. Now more developer friendly :)
This commit is contained in:
parent
fc53bc8909
commit
62ae8dc81e
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ class SingleScalarHydrator extends AbstractHydrator
|
|||
}
|
||||
|
||||
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();
|
||||
|
|
Loading…
Add table
Reference in a new issue