Skip to content

Commit

Permalink
Fixed recomputing non-persistent entities
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaplet committed Sep 29, 2024
1 parent e1d6e54 commit 9127f46
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Http/Request/Collection/CreateRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 9127f46

Please sign in to comment.