mpociot / laravel-test-factory-helper

Generate Laravel test factories from your existing models
936 stars 87 forks source link

Unknown database type json requested, Doctrine\DBAL\Platforms\MySQL57Platform may not support it. #11

Open Mevrael opened 7 years ago

Mevrael commented 7 years ago

I am using Laravel 5.3 and MySQL 5.7 with JSON column created by $table->json('column');

Such columns are not recognized by factory generator. I suppose this is because Doctrine still doesn't support it either.

JSON columns are casted to an array in a model classes, may be we could generate in this case a json_encode(array of integeres)?

jasonmccreary commented 4 years ago

@Mevrael, do you know if this is still an issue? Looking to clean up these older ones.