From f5e6044cf5cfe872f763f11ae0dabe036a6bb75e Mon Sep 17 00:00:00 2001 From: Guilherme Blanco Date: Thu, 17 Apr 2014 01:09:33 +0000 Subject: [PATCH] Provided more decriptive explanation when single scalar hydrator is used and it returns multiple columns. --- lib/Doctrine/ORM/Internal/Hydration/SingleScalarHydrator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/Internal/Hydration/SingleScalarHydrator.php b/lib/Doctrine/ORM/Internal/Hydration/SingleScalarHydrator.php index d75bfcefa..04bfe9844 100644 --- a/lib/Doctrine/ORM/Internal/Hydration/SingleScalarHydrator.php +++ b/lib/Doctrine/ORM/Internal/Hydration/SingleScalarHydrator.php @@ -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();