fixed issue with fetchOne() - a break was missing
This commit is contained in:
parent
af14c812ce
commit
744666ab95
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user