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); }