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];