We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 92f389a + a6d2419 commit a330aeeCopy full SHA for a330aee
1 file changed
Classes/Driver/Version6/Mapping/NodeTypeMappingBuilder.php
@@ -73,8 +73,10 @@ public function buildMappingInformation(ContentRepositoryId $contentRepositoryId
73
74
$propertiesAndReferences = array_merge(
75
$nodeType->getProperties(),
76
- array_map(function ($reference) {
77
- $reference['type'] = 'references';
+ array_map(static function (array $reference): array {
+ $reference['type'] = (($reference['constraints']['maxItems'] ?? null) === 1)
78
+ ? 'reference'
79
+ : 'references';
80
return $reference;
81
}, $nodeType->getReferences())
82
);
0 commit comments