Skip to content

Commit ef607f2

Browse files
authored
Merge pull request #12031 from doctrine/stof-patch-1
Clean the handling of proxy initialization in the UnitOfWork
2 parents b4ca0cd + de1c28b commit ef607f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/UnitOfWork.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2383,9 +2383,9 @@ public function createEntity(string $className, array $data, array &$hints = [])
23832383
$class->reflClass->markLazyObjectAsInitialized($entity);
23842384
} else {
23852385
$entity->__setInitialized(true);
2386-
}
23872386

2388-
Hydrator::hydrate($entity, (array) $class->reflClass->newInstanceWithoutConstructor());
2387+
Hydrator::hydrate($entity, (array) $class->reflClass->newInstanceWithoutConstructor());
2388+
}
23892389
} else {
23902390
if (
23912391
! isset($hints[Query::HINT_REFRESH])

0 commit comments

Comments
 (0)