diff --git a/lib/Doctrine/Hydrate.php b/lib/Doctrine/Hydrate.php index d8372e2d1..4928240d3 100644 --- a/lib/Doctrine/Hydrate.php +++ b/lib/Doctrine/Hydrate.php @@ -796,8 +796,8 @@ class Doctrine_Hydrate implements Serializable $array = $driver->getElementCollection($componentName); $identifiable = array(); - if ($stmt === false) { - return $array; + if ($stmt === false || $stmt === 0) { + return $array; } while ($data = $stmt->fetch(PDO::FETCH_ASSOC)) {