Provided more decriptive explanation when single scalar hydrator is used and it returns multiple columns.
This commit is contained in:
parent
1488a509b2
commit
f5e6044cf5
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user