Bugfix in UnitOfWorklib/Doctrine/ORM/UnitOfWork.phptriggerEagerLoads()
This commit is contained in:
parent
65c2b498ad
commit
99e46a23c6
@ -2499,9 +2499,11 @@ class UnitOfWork implements PropertyChangedListener
|
||||
foreach ($eagerLoadingEntities as $entityName => $ids) {
|
||||
$class = $this->em->getClassMetadata($entityName);
|
||||
|
||||
$this->getEntityPersister($entityName)->loadAll(
|
||||
array_combine($class->identifier, array(array_values($ids)))
|
||||
);
|
||||
if ($ids) {
|
||||
$this->getEntityPersister($entityName)->loadAll(
|
||||
array_combine($class->identifier, array(array_values($ids)))
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user