Skip to content

Commit 14b02d2

Browse files
authored
Merge pull request #25 from dachcom-digital/bugfix/object-relations-getter
Bugfix/object relations getter
2 parents a43a971 + f9b662b commit 14b02d2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

UPGRADE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Upgrade Notes
22

3+
## 2.0.2
4+
- [BUGFIX] `object_relations_getter_extractor` respect arguments (#23)
5+
36
## 2.0.1
47
- [BUGFIX] Add null coalescing operator to `$options['asset_limit']` in `AssetListBuilder:getList()`
58
- [BUGFIX] Allow `null` as locale value `normalizer_value_callback`

src/DsTrinityDataBundle/Resource/FieldTransformer/Object/ObjectRelationsGetterExtractor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function transformData(string $dispatchTransformerName, ResourceContainer
4848
return null;
4949
}
5050

51-
$values[] = call_user_func([$relation, $this->options['method']], $this->options['arguments']);
51+
$values[] = call_user_func_array([$relation, $this->options['method']], $this->options['arguments']);
5252
}
5353

5454
return $values;

0 commit comments

Comments
 (0)