[TYPO3-mvc] How to return a filtered subset of child objects?
Thomas "Thasmo" Deinhamer
thasmo at gmail.com
Sat Feb 13 19:35:56 CET 2010
Hi Masi,
in my case a category can return all assigned products, but it would be
of course also possible to return all assigned categories of a product.
Are there any aproaches or concepts, how to implement a find method,
passing multiple filters/criteria to find a subset of objects?
For example, I think it'd be cleaner to have something like:
$repository->findByCriteria(array|Tx_MyExt_Domain_Model_Criteria $criteria);
Are there any ideas for Extbase yet?
Thanks a lot,
Thomas
Am 13.02.2010 18:39, schrieb Martin Kutschker:
> I wouldn't want to write it that way. Each product should have a property "category", but I don't
> think the reverse should be true. As Sebastian said, add a method to the repository to get products
> filtered by the category.
More information about the TYPO3-project-typo3v4mvc
mailing list