1
0
Fork 0
mirror of synced 2025-04-01 12:26:11 +03:00

Update SingleScalarHydrator error message

bummed into this one. Now more developer friendly :)
This commit is contained in:
flip111 2013-10-02 14:12:35 +02:00
parent fc53bc8909
commit 62ae8dc81e

View file

@ -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();