From c236a670961d6501695a22df1a2668fbbf4f67b7 Mon Sep 17 00:00:00 2001 From: Menno Holtkamp Date: Mon, 13 Apr 2015 23:33:09 +0200 Subject: [PATCH] Used index as key to retrieve proper entry --- lib/Doctrine/ORM/Cache/Region/DefaultRegion.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/Cache/Region/DefaultRegion.php b/lib/Doctrine/ORM/Cache/Region/DefaultRegion.php index f4525ee11..94a4f56ba 100644 --- a/lib/Doctrine/ORM/Cache/Region/DefaultRegion.php +++ b/lib/Doctrine/ORM/Cache/Region/DefaultRegion.php @@ -120,7 +120,7 @@ class DefaultRegion implements Region $returnableItems = array(); foreach ($keysToRetrieve as $index => $key) { - $returnableItems[$index] = $items[$key]; + $returnableItems[$index] = $items[$index]; } return $returnableItems;