@@ 368-370 (lines=3) @@ | ||
365 | $mapping['id'] = true; |
|
366 | } |
|
367 | ||
368 | if (isset($oneToOneElement['fetch'])) { |
|
369 | $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_' . (string) $oneToOneElement['fetch']); |
|
370 | } |
|
371 | ||
372 | if (isset($oneToOneElement['mapped-by'])) { |
|
373 | $mapping['mappedBy'] = (string) $oneToOneElement['mapped-by']; |
|
@@ 417-419 (lines=3) @@ | ||
414 | 'mappedBy' => (string) $oneToManyElement['mapped-by'] |
|
415 | ]; |
|
416 | ||
417 | if (isset($oneToManyElement['fetch'])) { |
|
418 | $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_' . (string) $oneToManyElement['fetch']); |
|
419 | } |
|
420 | ||
421 | if (isset($oneToManyElement->cascade)) { |
|
422 | $mapping['cascade'] = $this->_getCascadeMappings($oneToManyElement->cascade); |
|
@@ 464-466 (lines=3) @@ | ||
461 | $mapping['id'] = true; |
|
462 | } |
|
463 | ||
464 | if (isset($manyToOneElement['fetch'])) { |
|
465 | $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_' . (string) $manyToOneElement['fetch']); |
|
466 | } |
|
467 | ||
468 | if (isset($manyToOneElement['inversed-by'])) { |
|
469 | $mapping['inversedBy'] = (string) $manyToOneElement['inversed-by']; |
|
@@ 506-508 (lines=3) @@ | ||
503 | 'targetEntity' => (string) $manyToManyElement['target-entity'] |
|
504 | ]; |
|
505 | ||
506 | if (isset($manyToManyElement['fetch'])) { |
|
507 | $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_' . (string) $manyToManyElement['fetch']); |
|
508 | } |
|
509 | ||
510 | if (isset($manyToManyElement['orphan-removal'])) { |
|
511 | $mapping['orphanRemoval'] = $this->evaluateBoolean($manyToManyElement['orphan-removal']); |
@@ 364-366 (lines=3) @@ | ||
361 | $mapping['id'] = true; |
|
362 | } |
|
363 | ||
364 | if (isset($oneToOneElement['fetch'])) { |
|
365 | $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_' . $oneToOneElement['fetch']); |
|
366 | } |
|
367 | ||
368 | if (isset($oneToOneElement['mappedBy'])) { |
|
369 | $mapping['mappedBy'] = $oneToOneElement['mappedBy']; |
|
@@ 418-420 (lines=3) @@ | ||
415 | 'mappedBy' => $oneToManyElement['mappedBy'] |
|
416 | ]; |
|
417 | ||
418 | if (isset($oneToManyElement['fetch'])) { |
|
419 | $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_' . $oneToManyElement['fetch']); |
|
420 | } |
|
421 | ||
422 | if (isset($oneToManyElement['cascade'])) { |
|
423 | $mapping['cascade'] = $oneToManyElement['cascade']; |
|
@@ 460-462 (lines=3) @@ | ||
457 | $mapping['id'] = true; |
|
458 | } |
|
459 | ||
460 | if (isset($manyToOneElement['fetch'])) { |
|
461 | $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_' . $manyToOneElement['fetch']); |
|
462 | } |
|
463 | ||
464 | if (isset($manyToOneElement['inversedBy'])) { |
|
465 | $mapping['inversedBy'] = $manyToOneElement['inversedBy']; |
|
@@ 505-507 (lines=3) @@ | ||
502 | 'targetEntity' => $manyToManyElement['targetEntity'] |
|
503 | ]; |
|
504 | ||
505 | if (isset($manyToManyElement['fetch'])) { |
|
506 | $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_' . $manyToManyElement['fetch']); |
|
507 | } |
|
508 | ||
509 | if (isset($manyToManyElement['mappedBy'])) { |
|
510 | $mapping['mappedBy'] = $manyToManyElement['mappedBy']; |