[TYPO3-mvc] findBy... not working... seems to return all records

Stephen Bungert stephenbungert at yahoo.de
Wed Dec 28 11:28:32 CET 2011


Sorry, does work.

I was re-writing my action function and had left

$items = $this->itemRepository->findAll();

after

 $items = $this->itemRepository->findByTags($filterBy['tag']);

so obviously it was then getting all items!


"Stephen Bungert" <stephenbungert at yahoo.de> schrieb im Newsbeitrag 
news:mailman.1.1325066561.14367.typo3-project-typo3v4mvc at lists.typo3.org...
>
> $items = $this->itemRepository->findByTags($filterBy['tag']);
>
> Assuming that $filterBy['tag'] is a number , say 3 for example, shouldn't 
> the above find all items that have a relation to the tag table record with 
> the UID of 3?
>
> It seems to return all items.
>
> The field in the items table is called "tags" and the relations are 
> managed by a MM table.
>
> Do I have to make my own repository fundtion for this?
>
> Stephen. 



More information about the TYPO3-project-typo3v4mvc mailing list