1
0
mirror of synced 2024-12-13 14:56:01 +03:00

Merge pull request #811 from flip111/patch-6

Update SingleScalarHydrator error message
This commit is contained in:
Guilherme Blanco 2013-10-02 06:07:59 -07:00
commit 3f883d57a6

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