@@ 165-172 (lines=8) @@ | ||
162 | switch ($associationUnderHammer->getAssociationType()) { |
|
163 | case AssociationType::NULL_ONE_TO_NULL_ONE(): |
|
164 | case AssociationType::NULL_ONE_TO_ONE(): |
|
165 | case AssociationType::ONE_TO_ONE(): |
|
166 | $meta->addResourceReferenceSinglePropertyBidirectional( |
|
167 | $objectModel->getEntities()[$first->getBaseType()]->getOdataResourceType(), |
|
168 | $objectModel->getEntities()[$last->getBaseType()]->getOdataResourceType(), |
|
169 | $first->getRelationName(), |
|
170 | $last->getRelationName() |
|
171 | ); |
|
172 | break; |
|
173 | case AssociationType::NULL_ONE_TO_MANY(): |
|
174 | case AssociationType::ONE_TO_MANY(): |
|
175 | if ($first->getMultiplicity()->getValue() == AssociationStubRelationType::MANY) { |
|
@@ 189-195 (lines=7) @@ | ||
186 | $manySide->getRelationName() |
|
187 | ); |
|
188 | break; |
|
189 | case AssociationType::MANY_TO_MANY(): |
|
190 | $meta->addResourceSetReferencePropertyBidirectional( |
|
191 | $objectModel->getEntities()[$first->getBaseType()]->getOdataResourceType(), |
|
192 | $objectModel->getEntities()[$last->getBaseType()]->getOdataResourceType(), |
|
193 | $first->getRelationName(), |
|
194 | $last->getRelationName() |
|
195 | ); |
|
196 | } |
|
197 | } |
|
198 |