Skip to content

Commit

Permalink
attempt a fix
Browse files Browse the repository at this point in the history
  • Loading branch information
goetas committed Sep 26, 2022
1 parent ef08316 commit b42f949
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Doctrine/ORM/UnitOfWork.php
Original file line number Diff line number Diff line change
Expand Up @@ -2219,12 +2219,12 @@ private function doRefresh($entity, array &$visited): void
throw ORMInvalidArgumentException::entityNotManaged($entity);
}

$this->cascadeRefresh($entity, $visited);

$this->getEntityPersister($class->name)->refresh(
array_combine($class->getIdentifierFieldNames(), $this->entityIdentifiers[$oid]),
$entity
);

$this->cascadeRefresh($entity, $visited);
}

/**
Expand Down

0 comments on commit b42f949

Please sign in to comment.