Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
25 | protected static function metaForId(ClassMetadataBuilder $builder): void |
||
26 | { |
||
27 | $builder->createField('id', MappingHelper::TYPE_NON_BINARY_UUID) |
||
28 | ->makePrimaryKey() |
||
29 | ->nullable(false) |
||
30 | ->unique(true) |
||
31 | ->generatedValue('CUSTOM') |
||
32 | ->setCustomIdGenerator(UuidGenerator::class) |
||
33 | ->build(); |
||
34 | } |
||
59 |