Skip to content

Commit

Permalink
-bugfix: the case when dynamic entity associated with role which is r…
Browse files Browse the repository at this point in the history
…eal loadable class
  • Loading branch information
wolfy-j committed Jun 23, 2019
1 parent 01928a6 commit be11e7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ protected function normalize(array $schema): array
}
}

if (class_exists($item[self::ENTITY])) {
if ($item[self::ENTITY] !== $role && class_exists($item[self::ENTITY])) {
$aliases[$item[self::ENTITY]] = $role;
}

Expand Down

0 comments on commit be11e7b

Please sign in to comment.