backend normalizer: add id to relationship endpoint

This commit is contained in:
Mathieu Jaumotte 2021-10-27 19:54:28 +02:00
parent 2cb1ad6afc
commit f834bb3bd6

View File

@ -22,6 +22,7 @@ class RelationshipNormalizer implements NormalizerInterface, NormalizerAwareInte
{
return [
'type' => 'relationship',
'id' => $this->normalizer->normalize($relationship->getId()),
'fromPerson' => $this->normalizer->normalize($relationship->getFromPerson()),
'toPerson' => $this->normalizer->normalize($relationship->getToPerson()),
'relation' => $this->normalizer->normalize($relationship->getRelation()),