1
0
mirror of synced 2025-01-18 14:31:40 +03:00

Bugfix in UnitOfWorklib/Doctrine/ORM/UnitOfWork.phptriggerEagerLoads()

This commit is contained in:
Benjamin Eberlei 2011-12-13 21:24:02 +01:00
parent 65c2b498ad
commit 99e46a23c6

View File

@ -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)))
);
}
}
}