Skip to content

Commit

Permalink
RecursiveFilterHelper::deleteMatchedClassNotInFilterProperties was no…
Browse files Browse the repository at this point in the history
…t using real property names but its aliases
  • Loading branch information
nilportugues committed Nov 26, 2015
1 parent 9177b36 commit 02ea408
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Transformer/Helpers/RecursiveFilterHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ private static function deleteMatchedClassNotInFilterProperties(
$keepKeys = $mappings[$typeKey]->getFilterKeys();
$idProperties = $mappings[$typeKey]->getIdProperties();

$keepKeys = str_replace(
array_values($mappings[$typeKey]->getAliasedProperties()),
array_keys($mappings[$typeKey]->getAliasedProperties()),
$keepKeys
);

if (!empty($keepKeys)) {
self::filterKeys($mappings, $array, $typeKey, $newArray, $keepKeys, $idProperties);
}
Expand Down

0 comments on commit 02ea408

Please sign in to comment.