We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3e178fa + 29d8212 commit b49d449Copy full SHA for b49d449
src/Mapping/ClassMetadata.php
@@ -2441,7 +2441,7 @@ public function mapField(array $mapping): array
2441
} elseif (empty($mapping['type'])) {
2442
$mapping['type'] = $this->generatorType === self::GENERATOR_TYPE_INCREMENT ? Type::INT : Type::CUSTOMID;
2443
}
2444
- } elseif ($mapping['type'] !== Type::UUID) {
+ } elseif (empty($mapping['type']) || $mapping['type'] !== Type::UUID) {
2445
$mapping['type'] = Type::ID;
2446
2447
0 commit comments