Skip to content

Commit cd86cd2

Browse files
committed
bug #161 Decimal Type: Fix small typo (mercuryseries)
This PR was merged into the 1.0-dev branch. Discussion ---------- Decimal Type: Fix small typo Scale value currently overwrites the previously entered precision value. Commits ------- ee3c73f Decimal Type: Fix small typo
2 parents 8713152 + ee3c73f commit cd86cd2

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)