diff --git a/src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodWorkEvaluationDenormalizer.php b/src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodWorkEvaluationDenormalizer.php index 7278ee0da..9190243de 100644 --- a/src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodWorkEvaluationDenormalizer.php +++ b/src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodWorkEvaluationDenormalizer.php @@ -92,10 +92,12 @@ class AccompanyingPeriodWorkEvaluationDenormalizer implements ContextAwareDenorm ->partition( static fn (int $key, AccompanyingPeriodWorkEvaluationDocument $a) => array_key_exists($a->getId(), $dataById) ); - $kept = $evaluation->getDocuments(); + //$kept = $evaluation->getDocuments(); dump($kept); + dump($removed); // remove the document from evaluation foreach ($removed as $r) { + dump($r); $evaluation->removeDocument($r); } // handle the documents kept @@ -120,6 +122,7 @@ class AccompanyingPeriodWorkEvaluationDenormalizer implements ContextAwareDenorm } // create new document foreach ($dataWithoutId as $newData) { + dump($newData); $document = $this->denormalizer->denormalize( $newData, AccompanyingPeriodWorkEvaluationDocument::class,