Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
fix(LocalizedEnumCollection): use correct type for LocalizedEnumColle…
Browse files Browse the repository at this point in the history
…ction elements

Closes #218
  • Loading branch information
Jens Schulze committed Jun 7, 2016
1 parent 1d2d635 commit 9492a8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/Common/LocalizedEnumCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 9492a8c

Please # to comment.