[TYPO3-mvc] Extbase query with AND over 1:n related objects

g4-lisz at tonarchiv.ch g4-lisz at tonarchiv.ch
Thu Mar 29 23:22:41 CEST 2012


On 03/29/2012 10:49 PM, Jochen Rau wrote:
> Hi Till,
>
>    
>>> What about
>>>
>>> $query->contains('book.categories', $category);
>>>        
>> This gives the same result (also books with only one of the given
>> categories).
>> What i need is all the bookes with all of the given categories. e.g.
>> books which are "classic" and "novel" at the same time...
>>      
> Just to be sure: Did you change your relation to m:n?
>
> Could you please provide us with the query Extbase creates in the
> Typo3DbBackend::getObjectDataByQuery() by uncommenting the debug line?
>
> -Jochen
>    

Ok i uncommented the debug line... where does the log go? Do i have to 
enable logging in the config tool?

Till
> _______________________________________________
> 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