Skip to content

Commit 85dc9c6

Browse files
authored
fix(enum): Change alias for custom enum type - closes #2.
1 parent c13938b commit 85dc9c6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Console/GenerateFactoryCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function __construct(Filesystem $files, Factory $view)
7676
$this->files = $files;
7777
$this->view = $view;
7878

79-
Type::addType('enum', EnumType::class);
79+
Type::addType('customEnum', EnumType::class);
8080
}
8181

8282
/**
@@ -486,7 +486,7 @@ protected function registerCustomTypes(AbstractSchemaManager $schema): void
486486
return;
487487
}
488488

489-
$platform->registerDoctrineTypeMapping('enum', 'enum');
489+
$platform->registerDoctrineTypeMapping('enum', 'customEnum');
490490
$platformName = $platform->getName();
491491
$customTypes = $this->laravel['config']->get("ide-helper.custom_db_types.{$platformName}", []);
492492

0 commit comments

Comments
 (0)