Fix issue with multiple entity references
1 unresolved thread
1 unresolved thread
Compare changes
Files
6+ 10
− 8
@@ -70,7 +70,7 @@ public function normalize($object, $format = NULL, array $context = []): array {
@@ -87,17 +87,19 @@ public function normalize($object, $format = NULL, array $context = []): array {
By not using delta, on each item
$entity
is the 1st referred item in the list (delta === 0). This is the source of the bug.