|
@@ 363-367 (lines=5) @@
|
| 360 |
|
$association->setPrimaryKey(true); |
| 361 |
|
} |
| 362 |
|
|
| 363 |
|
if (isset($oneToOneElement['fetch'])) { |
| 364 |
|
$association->setFetchMode( |
| 365 |
|
constant(sprintf('%s::%s', Mapping\FetchMode::class, (string) $oneToOneElement['fetch'])) |
| 366 |
|
); |
| 367 |
|
} |
| 368 |
|
|
| 369 |
|
if (isset($oneToOneElement['mapped-by'])) { |
| 370 |
|
$association->setMappedBy((string) $oneToOneElement['mapped-by']); |
|
@@ 425-429 (lines=5) @@
|
| 422 |
|
throw Mapping\MappingException::illegalToManyIdentifierAssociation($className, $association->getName()); |
| 423 |
|
} |
| 424 |
|
|
| 425 |
|
if (isset($oneToManyElement['fetch'])) { |
| 426 |
|
$association->setFetchMode( |
| 427 |
|
constant(sprintf('%s::%s', Mapping\FetchMode::class, (string) $oneToManyElement['fetch'])) |
| 428 |
|
); |
| 429 |
|
} |
| 430 |
|
|
| 431 |
|
if (isset($oneToManyElement->cascade)) { |
| 432 |
|
$association->setCascade($this->getCascadeMappings($oneToManyElement->cascade)); |
|
@@ 535-539 (lines=5) @@
|
| 532 |
|
throw Mapping\MappingException::illegalToManyIdentifierAssociation($className, $association->getName()); |
| 533 |
|
} |
| 534 |
|
|
| 535 |
|
if (isset($manyToManyElement['fetch'])) { |
| 536 |
|
$association->setFetchMode( |
| 537 |
|
constant(sprintf('%s::%s', Mapping\FetchMode::class, (string) $manyToManyElement['fetch'])) |
| 538 |
|
); |
| 539 |
|
} |
| 540 |
|
|
| 541 |
|
if (isset($manyToManyElement['orphan-removal'])) { |
| 542 |
|
$association->setOrphanRemoval($this->evaluateBoolean($manyToManyElement['orphan-removal'])); |