Skip to content

Commit 07e50c6

Browse files
committed
feature #1784 [make:entity] Specify more types categories (tcoch)
This PR was squashed before being merged into the 1.x branch. Discussion ---------- [make:entity] Specify more types categories Fixes #1780 Additions made according to types defined in: - https://github.com/doctrine/dbal/blob/5.0.x/src/Types/Type.php - https://github.com/doctrine/dbal/blob/5.0.x/src/Types/Types.php Original issue mentions other types such as `date_point`, but I couldn't find them on my environment or in Dbal Types, therefore I did not add them yet. Inputs on this matter are welcomed! Commits ------- ca1d9ab [make:entity] Specify more types categories
2 parents 05d2f6c + ca1d9ab commit 07e50c6

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

src/Maker/MakeEntity.php

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -455,24 +455,33 @@ private function printAvailableTypes(ConsoleStyle $io): void
455455
'text' => [],
456456
'boolean' => [],
457457
'integer' => ['smallint', 'bigint'],
458-
'float' => [],
458+
'float' => ['smallfloat'],
459+
'decimal' => [],
460+
'number' => [],
459461
],
460462
'array_object' => [
461463
'array' => ['simple_array'],
462-
'json' => [],
464+
'json' => ['json_object'],
463465
'object' => [],
464466
'binary' => [],
465467
'blob' => [],
468+
'json_b' => ['jsonb_object'],
466469
],
467470
'date_time' => [
468471
'datetime' => ['datetime_immutable'],
469472
'datetimetz' => ['datetimetz_immutable'],
470473
'date' => ['date_immutable'],
471-
'time' => ['time_immutable'],
474+
'date_point' => [],
472475
'dateinterval' => [],
476+
'day_point' => [],
477+
'time' => ['time_immutable'],
478+
'time_point' => [],
473479
],
474480
'other' => [
475481
'enum' => [],
482+
'uuid' => [],
483+
'guid' => [],
484+
'ulid' => [],
476485
],
477486
];
478487

0 commit comments

Comments
 (0)