Skip to content

Commit ca1d9ab

Browse files
tcochGromNaN
authored andcommitted
[make:entity] Specify more types categories
1 parent 9eddf6a commit ca1d9ab

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

src/Maker/MakeEntity.php

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen
292292

293293
break;
294294
default:
295-
throw new \Exception('Invalid relation type');
295+
throw new \Exception('Invalid relation type.');
296296
}
297297

298298
// save the inverse side if it's being mapped
@@ -454,24 +454,33 @@ private function printAvailableTypes(ConsoleStyle $io): void
454454
'text' => [],
455455
'boolean' => [],
456456
'integer' => ['smallint', 'bigint'],
457-
'float' => [],
457+
'float' => ['smallfloat'],
458+
'decimal' => [],
459+
'number' => [],
458460
],
459461
'array_object' => [
460462
'array' => ['simple_array'],
461-
'json' => [],
463+
'json' => ['json_object'],
462464
'object' => [],
463465
'binary' => [],
464466
'blob' => [],
467+
'json_b' => ['jsonb_object'],
465468
],
466469
'date_time' => [
467470
'datetime' => ['datetime_immutable'],
468471
'datetimetz' => ['datetimetz_immutable'],
469472
'date' => ['date_immutable'],
470-
'time' => ['time_immutable'],
473+
'date_point' => [],
471474
'dateinterval' => [],
475+
'day_point' => [],
476+
'time' => ['time_immutable'],
477+
'time_point' => [],
472478
],
473479
'other' => [
474480
'enum' => [],
481+
'uuid' => [],
482+
'guid' => [],
483+
'ulid' => [],
475484
],
476485
];
477486

0 commit comments

Comments
 (0)