[TYPO3-mvc] findByProperty() - Repository Method

Marc Bastian Heinrichs typo3 at mbh-web.de
Tue May 10 13:23:39 CEST 2011


Hey,

> I use the findByProperty()-Method in a Controller action, that as a
> Tx_Domain_Model. Object assigned.
> 
> The corresponding property of the model is a m-m relation thus a
> Persistent_object_storage that holds objects of
> 
> the type I assigned to the controller action. 
> 
>  
> 
> Sadly even though the Kategorie-Object is passed right (as i can debug ist
> settings), 
> 
> No articles are returned. I checked the m-m relation database table and the
> entries there are right (uid_foreign holds "1" for several article uids).
> 
>  
> 
> Any clue why that mechanism doesn't work here ?

you need your own method in the repositiory for m-m relation properties,
because the magic-method uses ->equals()

Best
Marc Bastian



More information about the TYPO3-project-typo3v4mvc mailing list