Skip to content

Commit 02ea408

Browse files
committed
RecursiveFilterHelper::deleteMatchedClassNotInFilterProperties was not using real property names but its aliases
1 parent 9177b36 commit 02ea408

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Transformer/Helpers/RecursiveFilterHelper.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ private static function deleteMatchedClassNotInFilterProperties(
5656
$keepKeys = $mappings[$typeKey]->getFilterKeys();
5757
$idProperties = $mappings[$typeKey]->getIdProperties();
5858

59+
$keepKeys = str_replace(
60+
array_values($mappings[$typeKey]->getAliasedProperties()),
61+
array_keys($mappings[$typeKey]->getAliasedProperties()),
62+
$keepKeys
63+
);
64+
5965
if (!empty($keepKeys)) {
6066
self::filterKeys($mappings, $array, $typeKey, $newArray, $keepKeys, $idProperties);
6167
}

0 commit comments

Comments
 (0)