Skip to content

Commit b49d449

Browse files
authored
Merge release 2.13.2 into 2.14.x (#2878)
Merge release 2.13.2 into 2.14.x
2 parents 3e178fa + 29d8212 commit b49d449

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Mapping/ClassMetadata.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2441,7 +2441,7 @@ public function mapField(array $mapping): array
24412441
} elseif (empty($mapping['type'])) {
24422442
$mapping['type'] = $this->generatorType === self::GENERATOR_TYPE_INCREMENT ? Type::INT : Type::CUSTOMID;
24432443
}
2444-
} elseif ($mapping['type'] !== Type::UUID) {
2444+
} elseif (empty($mapping['type']) || $mapping['type'] !== Type::UUID) {
24452445
$mapping['type'] = Type::ID;
24462446
}
24472447

0 commit comments

Comments
 (0)