1
0
mirror of synced 2024-12-13 22:56:04 +03:00

fixed issue with fetchOne() - a break was missing

This commit is contained in:
mahono 2007-09-06 12:59:45 +00:00
parent af14c812ce
commit 744666ab95

View File

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