|
@@ -45,7 +45,7 @@ discard block |
|
|
block discarded – undo |
|
45
|
45
|
/* |
|
46
|
46
|
* @var IModel $this |
|
47
|
47
|
*/ |
|
48
|
|
- return $this->GetAnnotationValue('array', $this, EdmConstants::InternalUri, CsdlConstants::NamespaceAliasAnnotation) ??[]; |
|
|
48
|
+ return $this->GetAnnotationValue('array', $this, EdmConstants::InternalUri, CsdlConstants::NamespaceAliasAnnotation) ?? []; |
|
49
|
49
|
} |
|
50
|
50
|
/** |
|
51
|
51
|
* Sets an annotation value for an EDM element. If the value is null, no annotation is added and an existing |
|
@@ -280,7 +280,7 @@ discard block |
|
|
block discarded – undo |
|
280
|
280
|
/* |
|
281
|
281
|
* @var IModel $this |
|
282
|
282
|
*/ |
|
283
|
|
- return $this->GetAnnotationValue('array', $this, EdmConstants::InternalUri, CsdlConstants::NamespacePrefixAnnotation)??[]; |
|
|
283
|
+ return $this->GetAnnotationValue('array', $this, EdmConstants::InternalUri, CsdlConstants::NamespacePrefixAnnotation) ?? []; |
|
284
|
284
|
} |
|
285
|
285
|
|
|
286
|
286
|
|
|
@@ -436,7 +436,7 @@ discard block |
|
|
block discarded – undo |
|
436
|
436
|
$navigationPropertyMappings = $model->GetAnnotationValue(SplObjectStorage::class, $entitySet, EdmConstants::InternalUri, CsdlConstants::AssociationSetNameAnnotation); |
|
437
|
437
|
assert($navigationPropertyMappings instanceof SplObjectStorage || $navigationPropertyMappings === null); |
|
438
|
438
|
if ($navigationPropertyMappings !== null && $navigationPropertyMappings->offsetExists($property)) { |
|
439
|
|
- $associationSetName = $navigationPropertyMappings->offsetGet($property) ; |
|
|
439
|
+ $associationSetName = $navigationPropertyMappings->offsetGet($property); |
|
440
|
440
|
} else { |
|
441
|
441
|
$associationSetName = $model->GetAssociationName($property) . 'Set'; |
|
442
|
442
|
} |
Please login to merge, or discard this patch.