Commit 744666ab authored by mahono's avatar mahono

fixed issue with fetchOne() - a break was missing

parent af14c812
...@@ -939,6 +939,7 @@ class Doctrine_Hydrate extends Doctrine_Object implements Serializable ...@@ -939,6 +939,7 @@ class Doctrine_Hydrate extends Doctrine_Object implements Serializable
if (count($collection) > 0) { if (count($collection) > 0) {
return $collection->getFirst(); return $collection->getFirst();
} }
break;
case Doctrine::HYDRATE_ARRAY: case Doctrine::HYDRATE_ARRAY:
return array_shift($collection); return array_shift($collection);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment