Skip to content
Snippets Groups Projects
Verified Commit 9d546f4d authored by Jiří Pudil's avatar Jiří Pudil
Browse files

fix missing argument in Table::getDatabaseColumns()

parent 117647c3
No related branches found
No related tags found
1 merge request!6Table::new() with required fields
Pipeline #30118 passed
......@@ -78,11 +78,12 @@ final class TableDecorator implements ClassDecorator
$columnsDefinitions = []; // name => PhpLiteral
$columnsArrayTemplate = [];
foreach($this->columnInfo as $column) {
$columnsArrayTemplate[] = "\t? => new Column(?, ?, ?)";
$columnsArrayTemplate[] = "\t? => new Column(?, ?, ?, ?)";
$columnsDefinitions[] = $column->getName();
$columnsDefinitions[] = $column->getName();
$columnsDefinitions[] = $column->getType();
$columnsDefinitions[] = $column->isNullable();
$columnsDefinitions[] = $column->hasDefaultValue();
}
$columnsArrayTemplate = \implode(",\n", $columnsArrayTemplate);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment