Skip to content

Commit

Permalink
Don't use uuid as default if type does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
HypeMC committed Jun 15, 2022
1 parent 37defa0 commit 78487d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Maker/MakeEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ private function askForNextField(ConsoleStyle $io, array $fields, string $entity
} elseif (str_starts_with($snakeCasedField, 'has_')) {
$defaultType = 'boolean';
} elseif ('uuid' === $snakeCasedField) {
$defaultType = 'uuid';
$defaultType = Type::hasType('uuid') ? 'uuid' : 'guid';
} elseif ('guid' === $snakeCasedField) {
$defaultType = 'guid';
}
Expand Down

0 comments on commit 78487d8

Please sign in to comment.