diff --git a/src/Console/ModelsCommand.php b/src/Console/ModelsCommand.php index a2439b1..42dfc95 100644 --- a/src/Console/ModelsCommand.php +++ b/src/Console/ModelsCommand.php @@ -510,6 +510,10 @@ class ModelsCommand extends Command $schema = $model->getConnection()->getDoctrineSchemaManager(); $databasePlatform = $schema->getDatabasePlatform(); $databasePlatform->registerDoctrineTypeMapping('enum', 'string'); + + if (strpos($table, '.')) { + [$database, $table] = explode('.', $table); + } $platformName = $databasePlatform->getName(); $customTypes = $this->laravel['config']->get("ide-helper.custom_db_types.{$platformName}", []);