|
@@ 303-306 (lines=4) @@
|
| 300 |
|
|
| 301 |
|
$metadata->mapField($mapping); |
| 302 |
|
|
| 303 |
|
if (isset($idElement['generator'])) { |
| 304 |
|
$metadata->setIdGeneratorType(constant('Doctrine\ORM\Mapping\ClassMetadata::GENERATOR_TYPE_' |
| 305 |
|
. strtoupper($idElement['generator']['strategy']))); |
| 306 |
|
} |
| 307 |
|
// Check for SequenceGenerator/TableGenerator definition |
| 308 |
|
if (isset($idElement['sequenceGenerator'])) { |
| 309 |
|
$metadata->setSequenceGeneratorDefinition($idElement['sequenceGenerator']); |
|
@@ 331-334 (lines=4) @@
|
| 328 |
|
|
| 329 |
|
if (isset($fieldMapping['id'])) { |
| 330 |
|
$mapping['id'] = true; |
| 331 |
|
if (isset($fieldMapping['generator']['strategy'])) { |
| 332 |
|
$metadata->setIdGeneratorType(constant('Doctrine\ORM\Mapping\ClassMetadata::GENERATOR_TYPE_' |
| 333 |
|
. strtoupper($fieldMapping['generator']['strategy']))); |
| 334 |
|
} |
| 335 |
|
} |
| 336 |
|
|
| 337 |
|
if (isset($mapping['version'])) { |