Conditions | 4 |
Paths | 4 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 4 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | 1 | public function postGenerateSchema(GenerateSchemaEventArgs $eventArgs): void |
|
16 | { |
||
17 | 1 | foreach ($eventArgs->getSchema()->getTables() as $table) { |
|
18 | 1 | foreach ($table->getColumns() as $column) { |
|
19 | 1 | $type = $column->getType(); |
|
20 | 1 | if ($type instanceof EnumType) { |
|
21 | 1 | $hash = md5($type->getQuotedPossibleValues()); |
|
22 | 1 | $column->setComment("(FelixEnum:$hash)"); |
|
23 | } |
||
28 |