From 62ae8dc81e0ed488adb55b20431a94918a23ad3e Mon Sep 17 00:00:00 2001 From: flip111 Date: Wed, 2 Oct 2013 14:12:35 +0200 Subject: [PATCH] Update SingleScalarHydrator error message bummed into this one. Now more developer friendly :) --- 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 b94724176..297aa98a0 100644 --- a/lib/Doctrine/ORM/Internal/Hydration/SingleScalarHydrator.php +++ b/lib/Doctrine/ORM/Internal/Hydration/SingleScalarHydrator.php @@ -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();