|
@@ 439-447 (lines=9) @@
|
| 436 |
|
$association->setOrphanRemoval($this->evaluateBoolean($oneToManyElement['orphan-removal'])); |
| 437 |
|
} |
| 438 |
|
|
| 439 |
|
if (isset($oneToManyElement->{'order-by'})) { |
| 440 |
|
$orderBy = []; |
| 441 |
|
|
| 442 |
|
foreach ($oneToManyElement->{'order-by'}->{'order-by-field'} as $orderByField) { |
| 443 |
|
$orderBy[(string) $orderByField['name']] = (string) $orderByField['direction']; |
| 444 |
|
} |
| 445 |
|
|
| 446 |
|
$association->setOrderBy($orderBy); |
| 447 |
|
} |
| 448 |
|
|
| 449 |
|
if (isset($oneToManyElement['index-by'])) { |
| 450 |
|
$association->setIndexedBy((string) $oneToManyElement['index-by']); |
|
@@ 586-594 (lines=9) @@
|
| 583 |
|
$association->setCascade($this->getCascadeMappings($manyToManyElement->cascade)); |
| 584 |
|
} |
| 585 |
|
|
| 586 |
|
if (isset($manyToManyElement->{'order-by'})) { |
| 587 |
|
$orderBy = []; |
| 588 |
|
|
| 589 |
|
foreach ($manyToManyElement->{'order-by'}->{'order-by-field'} as $orderByField) { |
| 590 |
|
$orderBy[(string) $orderByField['name']] = (string) $orderByField['direction']; |
| 591 |
|
} |
| 592 |
|
|
| 593 |
|
$association->setOrderBy($orderBy); |
| 594 |
|
} |
| 595 |
|
|
| 596 |
|
if (isset($manyToManyElement['index-by'])) { |
| 597 |
|
$association->setIndexedBy((string) $manyToManyElement['index-by']); |