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