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.
1 parent 4d22016 commit 595af4bCopy full SHA for 595af4b
lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadata.php
@@ -2408,7 +2408,7 @@ public function mapField(array $mapping): array
2408
} elseif (empty($mapping['type'])) {
2409
$mapping['type'] = $this->generatorType === self::GENERATOR_TYPE_INCREMENT ? Type::INT : Type::CUSTOMID;
2410
}
2411
- } elseif ($mapping['type'] !== Type::UUID) {
+ } elseif (empty($mapping['type']) || $mapping['type'] !== Type::UUID) {
2412
$mapping['type'] = Type::ID;
2413
2414
0 commit comments