[TYPO3-mvc] Complex query just not working

Franz Koch typo3.RemoveForMessage at elements-net.de
Wed Jul 13 10:20:40 CEST 2011


Hey,

> Actually this is very weird.
>
> This case works (only include* fields used):
> $constraint = $query->logicalOr(
> $query->in('includedCategories.uid', $categories),
> $query->contains('includedProducts', $product)
> );

could you check which part of it fails by trying them separately and 
check the created SQL? As I said, I'm not sure if the ->in() will work 
as expected - depends on your relation type. Please also check for the 
bug Georg mentioned.

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list