|
@@ 109-119 (lines=11) @@
|
| 106 |
|
} |
| 107 |
|
|
| 108 |
|
// Evaluate <many-to-one ..> mappings |
| 109 |
|
if (isset($xmlRoot->{"reference-one"})) { |
| 110 |
|
foreach ($xmlRoot->{"reference-one"} as $referenceOneElement) { |
| 111 |
|
$class->mapManyToOne(array( |
| 112 |
|
'cascade' => (isset($referenceOneElement->cascade)) ? $this->getCascadeMode($referenceOneElement->cascade) : 0, |
| 113 |
|
'targetDocument' => (string)$referenceOneElement['target-document'], |
| 114 |
|
'fieldName' => (string)$referenceOneElement['field'], |
| 115 |
|
'jsonName' => (isset($referenceOneElement['json-name'])) ? (string)$referenceOneElement['json-name'] : null, |
| 116 |
|
'indexed' => (isset($referenceOneElement['index'])) ? (bool)$referenceOneElement['index'] : false, |
| 117 |
|
)); |
| 118 |
|
} |
| 119 |
|
} |
| 120 |
|
|
| 121 |
|
// Evaluate <many-to-one ..> mappings |
| 122 |
|
if (isset($xmlRoot->{"reference-many"})) { |
|
@@ 122-132 (lines=11) @@
|
| 119 |
|
} |
| 120 |
|
|
| 121 |
|
// Evaluate <many-to-one ..> mappings |
| 122 |
|
if (isset($xmlRoot->{"reference-many"})) { |
| 123 |
|
foreach ($xmlRoot->{"reference-many"} as $referenceManyElement) { |
| 124 |
|
$class->mapManyToMany(array( |
| 125 |
|
'cascade' => (isset($referenceManyElement->cascade)) ? $this->getCascadeMode($referenceManyElement->cascade) : 0, |
| 126 |
|
'targetDocument' => (string)$referenceManyElement['target-document'], |
| 127 |
|
'fieldName' => (string)$referenceManyElement['field'], |
| 128 |
|
'jsonName' => (isset($referenceManyElement['json-name'])) ? (string)$referenceManyElement['json-name'] : null, |
| 129 |
|
'mappedBy' => (isset($referenceManyElement['mapped-by'])) ? (string)$referenceManyElement['mapped-by'] : null, |
| 130 |
|
)); |
| 131 |
|
} |
| 132 |
|
} |
| 133 |
|
|
| 134 |
|
// Evaluate <attachments ..> mapping |
| 135 |
|
if (isset($xmlRoot->{"attachments"})) { |