|
@@ 429-435 (lines=7) @@
|
| 426 |
|
$mapping['orphanRemoval'] = $this->evaluateBoolean($oneToManyElement['orphan-removal']); |
| 427 |
|
} |
| 428 |
|
|
| 429 |
|
if (isset($oneToManyElement->{'order-by'})) { |
| 430 |
|
$orderBy = []; |
| 431 |
|
foreach ($oneToManyElement->{'order-by'}->{'order-by-field'} as $orderByField) { |
| 432 |
|
$orderBy[(string) $orderByField['name']] = (string) $orderByField['direction']; |
| 433 |
|
} |
| 434 |
|
$mapping['orderBy'] = $orderBy; |
| 435 |
|
} |
| 436 |
|
|
| 437 |
|
if (isset($oneToManyElement['index-by'])) { |
| 438 |
|
$mapping['indexBy'] = (string) $oneToManyElement['index-by']; |
|
@@ 545-551 (lines=7) @@
|
| 542 |
|
$mapping['cascade'] = $this->_getCascadeMappings($manyToManyElement->cascade); |
| 543 |
|
} |
| 544 |
|
|
| 545 |
|
if (isset($manyToManyElement->{'order-by'})) { |
| 546 |
|
$orderBy = []; |
| 547 |
|
foreach ($manyToManyElement->{'order-by'}->{'order-by-field'} as $orderByField) { |
| 548 |
|
$orderBy[(string) $orderByField['name']] = (string) $orderByField['direction']; |
| 549 |
|
} |
| 550 |
|
$mapping['orderBy'] = $orderBy; |
| 551 |
|
} |
| 552 |
|
|
| 553 |
|
if (isset($manyToManyElement['index-by'])) { |
| 554 |
|
$mapping['indexBy'] = (string) $manyToManyElement['index-by']; |