[TYPO3-mvc] LazyLoadinProxy and TypeHinting causes fatal error

Philipp philippwrann at gmx.at
Fri Jan 17 10:37:32 CET 2014


$objects = $this->objectRepository->findDemanded($demand);
$count = $objects->count();
if ($count>0) {
$processed = 0;
while ($processed < $count) {
$query = $objects->getQuery();
$query->setLimit(50);
if ($processed) $query->setOffset($processed);
$objects = $query->execute()->toArray();
foreach ($objects as $object) {
$this->addObjectToReturn($object);
$processed++;
}
$this->persistenceManager->clearState();
}
}

This way the memory consumption went down to ~10%
parsing time is still _very_ high.


More information about the TYPO3-project-typo3v4mvc mailing list