Skip to content

Commit ee3c73f

Browse files
Decimal Type: Fix small typo
Scale value currently overwrites the previously entered precision value.
1 parent 8713152 commit ee3c73f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Maker/MakeEntity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ private function askForNextField(ConsoleStyle $io, array $fields, string $entity
364364
$data['precision'] = $io->ask('Precision (total number of digits stored: 100.00 would be 5)', 10, [Validator::class, 'validatePrecision']);
365365

366366
// 0 is the default value given in \Doctrine\DBAL\Schema\Column::$_scale
367-
$data['precision'] = $io->ask('Scale (number of decimals to store: 100.00 would be 2)', 0, [Validator::class, 'validateScale']);
367+
$data['scale'] = $io->ask('Scale (number of decimals to store: 100.00 would be 2)', 0, [Validator::class, 'validateScale']);
368368
}
369369

370370
if ($io->confirm('Can this field be null in the database (nullable)', false)) {

0 commit comments

Comments
 (0)