Open usernotnull opened 3 years ago
Enums aren't supported by DBAL, which is used for the columns analysis. I'm going to make a driver for it.
Schema::getConnection() ->getDoctrineSchemaManager() ->getDatabasePlatform() ->registerDoctrineTypeMapping('enum', 'string');
In some of your provider
In some of your provider
Put this in the Model's class or in boot of AppServiceProvider?
Schema::getConnection()->getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string');
Also, getting Method 'getDatabasePlatform' is deprecated
Some of my models have enum fields.
This causes typescript:generate to throw:
I'm not sure why it's not supported, as enums are working fine on my project/setup.