We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 185d97a + 213bed3 commit 9d1e854Copy full SHA for 9d1e854
src/OscarAFDev/MigrationsGenerator/Generators/FieldGenerator.php
@@ -73,8 +73,8 @@ protected function getEnum($table)
73
protected function setEnum(array $fields, $table)
74
{
75
foreach ($this->getEnum($table) as $column) {
76
- $fields[$column->COLUMN_NAME]['type'] = 'enum';
77
- $fields[$column->COLUMN_NAME]['args'] = str_replace('enum(', 'array(', $column->COLUMN_TYPE);
+ $fields[$column->column_name]['type'] = 'enum';
+ $fields[$column->column_name]['args'] = str_replace('enum(', 'array(', $column->column_type);
78
}
79
return $fields;
80
0 commit comments