From 9492a8cd18c48f42a64140a451df0f2b6631c4fc Mon Sep 17 00:00:00 2001 From: Jens Schulze Date: Tue, 7 Jun 2016 13:53:03 +0200 Subject: [PATCH] fix(LocalizedEnumCollection): use correct type for LocalizedEnumCollection elements Closes #218 --- src/Model/Common/LocalizedEnumCollection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Common/LocalizedEnumCollection.php b/src/Model/Common/LocalizedEnumCollection.php index 349e900584..c9ab96c3cf 100644 --- a/src/Model/Common/LocalizedEnumCollection.php +++ b/src/Model/Common/LocalizedEnumCollection.php @@ -21,7 +21,7 @@ class LocalizedEnumCollection extends Collection protected function indexRow($offset, $row) { - if ($row instanceof Enum) { + if ($row instanceof LocalizedEnum) { $key = $row->getKey(); } else { $key = $row[static::KEY];