| @@ 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']); |
|
| @@ 369-371 (lines=3) @@ | ||
| 366 | $mapping['id'] = true; |
|
| 367 | } |
|
| 368 | ||
| 369 | if (isset($oneToOneElement['fetch'])) { |
|
| 370 | $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_' . $oneToOneElement['fetch']); |
|
| 371 | } |
|
| 372 | ||
| 373 | if (isset($oneToOneElement['mappedBy'])) { |
|
| 374 | $mapping['mappedBy'] = $oneToOneElement['mappedBy']; |
|
| @@ 423-425 (lines=3) @@ | ||
| 420 | 'mappedBy' => $oneToManyElement['mappedBy'] |
|
| 421 | ]; |
|
| 422 | ||
| 423 | if (isset($oneToManyElement['fetch'])) { |
|
| 424 | $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_' . $oneToManyElement['fetch']); |
|
| 425 | } |
|
| 426 | ||
| 427 | if (isset($oneToManyElement['cascade'])) { |
|
| 428 | $mapping['cascade'] = $oneToManyElement['cascade']; |
|
| @@ 465-467 (lines=3) @@ | ||
| 462 | $mapping['id'] = true; |
|
| 463 | } |
|
| 464 | ||
| 465 | if (isset($manyToOneElement['fetch'])) { |
|
| 466 | $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_' . $manyToOneElement['fetch']); |
|
| 467 | } |
|
| 468 | ||
| 469 | if (isset($manyToOneElement['inversedBy'])) { |
|
| 470 | $mapping['inversedBy'] = $manyToOneElement['inversedBy']; |
|
| @@ 510-512 (lines=3) @@ | ||
| 507 | 'targetEntity' => $manyToManyElement['targetEntity'] |
|
| 508 | ]; |
|
| 509 | ||
| 510 | if (isset($manyToManyElement['fetch'])) { |
|
| 511 | $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_' . $manyToManyElement['fetch']); |
|
| 512 | } |
|
| 513 | ||
| 514 | if (isset($manyToManyElement['mappedBy'])) { |
|
| 515 | $mapping['mappedBy'] = $manyToManyElement['mappedBy']; |
|