From be11e7b2ff83fb9e932203c839504e9dc9ad3334 Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Sun, 23 Jun 2019 12:56:46 +0300 Subject: [PATCH] -bugfix: the case when dynamic entity associated with role which is real loadable class --- src/Schema.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Schema.php b/src/Schema.php index 3ea118766..d1993b0e4 100644 --- a/src/Schema.php +++ b/src/Schema.php @@ -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; }