From 744666ab952a455414646de2edc9ff444e963753 Mon Sep 17 00:00:00 2001 From: mahono Date: Thu, 6 Sep 2007 12:59:45 +0000 Subject: [PATCH] fixed issue with fetchOne() - a break was missing --- lib/Doctrine/Hydrate.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Doctrine/Hydrate.php b/lib/Doctrine/Hydrate.php index c5f9ade8d..3da0e626d 100644 --- a/lib/Doctrine/Hydrate.php +++ b/lib/Doctrine/Hydrate.php @@ -939,6 +939,7 @@ class Doctrine_Hydrate extends Doctrine_Object implements Serializable if (count($collection) > 0) { return $collection->getFirst(); } + break; case Doctrine::HYDRATE_ARRAY: return array_shift($collection); }