lepikhinb / laravel-typescript

MIT License
391 stars 46 forks source link

Workaround for lack of enum support by DBAL #13

Closed robmeijerink closed 2 years ago

robmeijerink commented 2 years ago

Unfortunately this package does not work if the database has enum columns. DBAL does not support enum column types. In this PR the enum columns are mapped to strings, so we can still use the package when we have enum columns in our database. The TypeScript models will have a string type instead of an enum. Maybe not the best solution to this problem, but maybe it helps others for the time being.

lepikhinb commented 2 years ago

yo, thanks! appreciate the pr