Skip to content

Commit 9d1e854

Browse files
authored
Merge pull request #10 from el3zahaby/patch-1
fix '$column' keys by el3zahaby
2 parents 185d97a + 213bed3 commit 9d1e854

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OscarAFDev/MigrationsGenerator/Generators/FieldGenerator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ protected function getEnum($table)
7373
protected function setEnum(array $fields, $table)
7474
{
7575
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);
76+
$fields[$column->column_name]['type'] = 'enum';
77+
$fields[$column->column_name]['args'] = str_replace('enum(', 'array(', $column->column_type);
7878
}
7979
return $fields;
8080
}

0 commit comments

Comments
 (0)