@@ 298-301 (lines=4) @@ | ||
295 | ||
296 | $metadata->mapField($mapping); |
|
297 | ||
298 | if (isset($idElement['generator'])) { |
|
299 | $metadata->setIdGeneratorType(constant('Doctrine\ORM\Mapping\ClassMetadata::GENERATOR_TYPE_' |
|
300 | . strtoupper($idElement['generator']['strategy']))); |
|
301 | } |
|
302 | // Check for SequenceGenerator/TableGenerator definition |
|
303 | if (isset($idElement['sequenceGenerator'])) { |
|
304 | $metadata->setSequenceGeneratorDefinition($idElement['sequenceGenerator']); |
|
@@ 326-329 (lines=4) @@ | ||
323 | ||
324 | if (isset($fieldMapping['id'])) { |
|
325 | $mapping['id'] = true; |
|
326 | if (isset($fieldMapping['generator']['strategy'])) { |
|
327 | $metadata->setIdGeneratorType(constant('Doctrine\ORM\Mapping\ClassMetadata::GENERATOR_TYPE_' |
|
328 | . strtoupper($fieldMapping['generator']['strategy']))); |
|
329 | } |
|
330 | } |
|
331 | ||
332 | if (isset($mapping['version'])) { |