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