| Conditions | 1 |
| Paths | 1 |
| Total Lines | 23 |
| Code Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public static function loadMetadata(ClassMetadataInfo $metadata) |
||
| 20 | { |
||
| 21 | $metadata->setInheritanceType(ClassMetadataInfo::INHERITANCE_TYPE_SINGLE_TABLE); |
||
| 22 | $metadata->setDiscriminatorColumn([ |
||
| 23 | 'name' => 'discr', |
||
| 24 | 'type' => 'string', |
||
| 25 | 'length' => 32, |
||
| 26 | ]); |
||
| 27 | $metadata->setDiscriminatorMap([ |
||
| 28 | 'cube' => cube::class, |
||
| 29 | ]); |
||
| 30 | $metadata->mapField([ |
||
| 31 | 'fieldName' => 'id', |
||
| 32 | 'type' => 'string', |
||
| 33 | 'length' => NULL, |
||
| 34 | 'precision' => 0, |
||
| 35 | 'scale' => 0, |
||
| 36 | 'nullable' => false, |
||
| 37 | 'unique' => false, |
||
| 38 | 'id' => true, |
||
| 39 | 'columnName' => 'id', |
||
| 40 | ]); |
||
| 41 | $metadata->setIdGeneratorType(ClassMetadataInfo::GENERATOR_TYPE_AUTO); |
||
| 42 | } |
||
| 44 |