[TYPO3-mvc] Include MM_match_field in query statement

Henjo Hoeksma me at henjohoeksma.nl
Sat Sep 8 22:07:22 CEST 2012


Hi Peter,

afaik this is not supported yet. But I could be wrong. It might help to know which version of Extbase you are using.

Henjo

On Sep 8, 2012, at 5:28 PM, Peter Falk <pf1 at isight.dk> wrote:

> Hi all.
> 
> How do I include the MM_match_field in a query, without having to wrote the whole query-statement myself?
> 
> When using contains: $query->contains( 'category', $uid ), the api add this to the query:
> 
> ... IN (SELECT uid_local FROM misc_tx_categories_categories_mm WHERE uid_foreign=432), which is correct.
> 
> But because the MM-table is used in different situations, field tablenames must be a part of the query.
> 
> ... IN(SELECT uid_local FROM misc_tx_categories_categories_mm WHERE uid_foreign=432 AND tablenames="tx_events_domain_model_event")
> 
> 
> 
> Regards
> Peter
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc



More information about the TYPO3-project-typo3v4mvc mailing list