1
0
mirror of synced 2025-01-18 22:41:43 +03:00

Provided more decriptive explanation when single scalar hydrator is used and it returns multiple columns.

This commit is contained in:
Guilherme Blanco 2014-04-17 01:09:33 +00:00
parent 1488a509b2
commit f5e6044cf5

View File

@ -48,7 +48,7 @@ class SingleScalarHydrator extends AbstractHydrator
}
if (count($data[key($data)]) > 1) {
throw new NonUniqueResultException('The row contains multiple columns. Change the query or use a different result function like getScalarResult().');
throw new NonUniqueResultException('The query returned a row containing multiple columns. Change the query or use a different result function like getScalarResult().');
}
$cache = array();