fixed issue with fetchOne() - a break was missing
This commit is contained in:
parent
af14c812ce
commit
744666ab95
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue