@@ 126-136 (lines=11) @@ | ||
123 | } |
|
124 | ||
125 | // Evaluate <many-to-one ..> mappings |
|
126 | if (isset($xmlRoot->{"reference-one"})) { |
|
127 | foreach ($xmlRoot->{"reference-one"} as $referenceOneElement) { |
|
128 | $class->mapManyToOne(array( |
|
129 | 'cascade' => (isset($referenceOneElement->cascade)) ? $this->getCascadeMode($referenceOneElement->cascade) : 0, |
|
130 | 'targetDocument' => (string)$referenceOneElement['target-document'], |
|
131 | 'fieldName' => (string)$referenceOneElement['field'], |
|
132 | 'jsonName' => (isset($referenceOneElement['json-name'])) ? (string)$referenceOneElement['json-name'] : null, |
|
133 | 'indexed' => (isset($referenceOneElement['index'])) ? (bool)$referenceOneElement['index'] : false, |
|
134 | )); |
|
135 | } |
|
136 | } |
|
137 | ||
138 | // Evaluate <many-to-one ..> mappings |
|
139 | if (isset($xmlRoot->{"reference-many"})) { |
|
@@ 139-149 (lines=11) @@ | ||
136 | } |
|
137 | ||
138 | // Evaluate <many-to-one ..> mappings |
|
139 | if (isset($xmlRoot->{"reference-many"})) { |
|
140 | foreach ($xmlRoot->{"reference-many"} as $referenceManyElement) { |
|
141 | $class->mapManyToMany(array( |
|
142 | 'cascade' => (isset($referenceManyElement->cascade)) ? $this->getCascadeMode($referenceManyElement->cascade) : 0, |
|
143 | 'targetDocument' => (string)$referenceManyElement['target-document'], |
|
144 | 'fieldName' => (string)$referenceManyElement['field'], |
|
145 | 'jsonName' => (isset($referenceManyElement['json-name'])) ? (string)$referenceManyElement['json-name'] : null, |
|
146 | 'mappedBy' => (isset($referenceManyElement['mapped-by'])) ? (string)$referenceManyElement['mapped-by'] : null, |
|
147 | )); |
|
148 | } |
|
149 | } |
|
150 | ||
151 | // Evaluate <attachments ..> mapping |
|
152 | if (isset($xmlRoot->{"attachments"})) { |