We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e074cb commit 2f28d22Copy full SHA for 2f28d22
serializer/custom_normalizer.rst
@@ -39,7 +39,7 @@ to customize the normalized data. To do that, leverage the ``ObjectNormalizer``:
39
40
// Here, add, edit, or delete some data:
41
$data['href']['self'] = $this->router->generate('topic_show', [
42
- 'id' => $topic->getId(),
+ 'id' => $object->getId(),
43
], UrlGeneratorInterface::ABSOLUTE_URL);
44
45
return $data;
0 commit comments