[TYPO3-mvc] How to return a filtered subset of child objects?

Franz Koch typo3.RemoveForMessage at elements-net.de
Sat Feb 13 18:24:49 CET 2010


Hi,

> Or do you recommend to assign the products seperately, like:
>
> $this->view->assign('desiredProducts',
> $this->productRepository->findByCriteria($category, $filters));
>
> This way I could only assign filtered products by the controller,
> while the category model will always return all assigned products.

is this working for you? From your first post I thought you're 
traversing multiple categories that themselfes should render only a subset.
If you're only displaying one category, this is also the way I'd go (I 
also do this in my ext where possible, as it's the cleaner solution)

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list