Skip to content

Commit 78487d8

Browse files
committed
Don't use uuid as default if type does not exist
1 parent 37defa0 commit 78487d8

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
@@ -374,7 +374,7 @@ private function askForNextField(ConsoleStyle $io, array $fields, string $entity
374374
} elseif (str_starts_with($snakeCasedField, 'has_')) {
375375
$defaultType = 'boolean';
376376
} elseif ('uuid' === $snakeCasedField) {
377-
$defaultType = 'uuid';
377+
$defaultType = Type::hasType('uuid') ? 'uuid' : 'guid';
378378
} elseif ('guid' === $snakeCasedField) {
379379
$defaultType = 'guid';
380380
}

0 commit comments

Comments
 (0)