mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 01:57:13 +00:00
Set mapping for enum
This commit is contained in:
@@ -138,7 +138,9 @@ class ModelsCommand extends Command {
|
|||||||
|
|
||||||
protected function getPropertiesFromTable($model){
|
protected function getPropertiesFromTable($model){
|
||||||
$table = $model->getTable();
|
$table = $model->getTable();
|
||||||
$schema = $model->getConnection()->getDoctrineSchemaManager($table);
|
$connection = $model->getConnection();
|
||||||
|
$connection->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string');
|
||||||
|
$schema = $connection->getDoctrineSchemaManager($table);
|
||||||
|
|
||||||
$columns = $schema->listTableColumns($table);
|
$columns = $schema->listTableColumns($table);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user