diff --git a/src/Http/Request/Collection/CreateRequest.php b/src/Http/Request/Collection/CreateRequest.php index 597a9d5..3e1841d 100644 --- a/src/Http/Request/Collection/CreateRequest.php +++ b/src/Http/Request/Collection/CreateRequest.php @@ -107,8 +107,6 @@ public function process(array $data): Response try { foreach (ArrayToEntity::getEntitiesToFlush()->getIterator() as $entity) { - $classMetadata = $this->em->getClassMetadata($entity::class); - $this->em->getUnitOfWork()->recomputeSingleEntityChangeSet($classMetadata, $entity); $this->em->flush($entity); } $this->em->commit();