Skip to content
This repository has been archived by the owner on Feb 4, 2021. It is now read-only.

Commit

Permalink
Merge pull request algolia#288 from kiler129/fix-#286
Browse files Browse the repository at this point in the history
algolia#286: Carry over normalization context on aggregation
  • Loading branch information
nunomaduro authored Feb 18, 2019
2 parents 497766a + be26d6b commit 5e9889b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Entity/Aggregator.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,6 @@ public static function getEntityClassFromObjectID($objectID)
*/
public function normalize(NormalizerInterface $normalizer, $format = null, array $context = [])
{
return array_merge(['objectID' => $this->objectID], $normalizer->normalize($this->entity));
return array_merge(['objectID' => $this->objectID], $normalizer->normalize($this->entity, $format, $context));
}
}

0 comments on commit 5e9889b

Please sign in to comment.