From 9127f4687794d31286f93c18dc11800d497744e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Zapletal?= Date: Sun, 29 Sep 2024 15:49:18 +0200 Subject: [PATCH] Fixed recomputing non-persistent entities --- src/Http/Request/Collection/CreateRequest.php | 2 -- 1 file changed, 2 deletions(-) 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();