wintercms / wn-builder-plugin

GUI for building plugins in Winter CMS
MIT License
34 stars 12 forks source link

Custom database types not recognized.(Referencing an older issue on rainlab builder) #26

Closed tschallacka closed 1 year ago

tschallacka commented 2 years ago

See for orinal issue https://github.com/rainlab/builder-plugin/issues/257

See if this can be implemented automatically in schemabuilder or somewhere else.

Aparently this solves it.

Db::getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping('txid_snapshot', 'text');

I'll pick this up if nobody else does, and otherwise this adds an existing issue that can be referenced.

LukeTowers commented 2 years ago

I'm not sure what this plugin would do differently, it sounds like adding support for custom doctrine type mapping is already supported through using your own plugins to register it to the global schema manager?

tschallacka commented 2 years ago

If you look at the original issue, you'll see that although its registered, an error message would stil popup. So somewhere there was an issue with it still, when using non standard schema input types.

I'll see if this is still an issue in wintercms/laravel 9. I just ported this issue here, to see if its still an issue and if I can fix it, or at least add to the documentation, for those who encounter it how to resolve it.

bennothommo commented 1 year ago

@tschallacka feel free to provide some edits for the docs, if the suggested fix works. I'll close this for now.