@@ 170-176 (lines=7) @@ | ||
167 | $resourceType = $entityTypes[$thisClass]; |
|
168 | // if $r is in $combined keys, then its in keyspaces of both $entityTypes and $resourceSets |
|
169 | $combinedKeys = array_intersect(array_keys($entityTypes), array_keys($resourceSets)); |
|
170 | foreach ($rel["HasOne"] as $n => $r) { |
|
171 | $r = trim($r, '\\'); |
|
172 | if (in_array($r, $combinedKeys)) { |
|
173 | $targResourceSet = $resourceSets[$r]; |
|
174 | $metadata->addResourceReferenceProperty($resourceType, $n, $targResourceSet); |
|
175 | } |
|
176 | } |
|
177 | foreach ($rel["HasMany"] as $n => $r) { |
|
178 | $r = trim($r, '\\'); |
|
179 | if (in_array($r, $combinedKeys)) { |
|
@@ 177-183 (lines=7) @@ | ||
174 | $metadata->addResourceReferenceProperty($resourceType, $n, $targResourceSet); |
|
175 | } |
|
176 | } |
|
177 | foreach ($rel["HasMany"] as $n => $r) { |
|
178 | $r = trim($r, '\\'); |
|
179 | if (in_array($r, $combinedKeys)) { |
|
180 | $targResourceSet = $resourceSets[$r]; |
|
181 | $metadata->addResourceSetReferenceProperty($resourceType, $n, $targResourceSet); |
|
182 | } |
|
183 | } |
|
184 | return $rel; |
|
185 | } |
|
186 |