From 2ffda34f233f603208b39c5fc8732cd7761bb747 Mon Sep 17 00:00:00 2001 From: jaimz22 Date: Sat, 8 Nov 2014 10:15:33 -0500 Subject: [PATCH] fixing a missing index error --- lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php b/lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php index 9addc1d3c..1dfbfc441 100644 --- a/lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php +++ b/lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php @@ -546,7 +546,7 @@ class ObjectHydrator extends AbstractHydrator } - $scalarCount = count($rowData['scalars']); + $scalarCount = (isset($rowData['scalars'])? count($rowData['scalars']): 0); foreach ($rowData['newObjects'] as $objIndex => $newObject) { $class = $newObject['class'];