[TYPO3-mvc] repository issue with contains

Patrick Schriner patrick.schriner at diemedialen.de
Wed Jan 14 15:07:17 CET 2015


Hi Frank,

in this case it's the same as with the enableFields: You can avoid that by  
using setRespectSysLanguage(FALSE) on the query settings, and have to  
manually restrict your query to your choosen languages for the "main"  
object (if you have to)

Unfortunetly Typo3DbQueryParser doesn't look like it could easily be  
patched to work correctly for related objects.

Regards,
Patrick

On Wed, 14 Jan 2015 14:13:08 +0100, Frank Krüger  
<fkrueger-ml at mp-group.net> wrote:

> Hi,
>
> Am Mittwoch, den 14.01.2015, 12:37 +0100 schrieb Patrick Schriner:
>> $GLOBALS['TYPO3_DB']->debugOutput = 2;
>> $query->execute()->toArray();
>> $GLOBALS['TYPO3_DB']->debugOutput = FALSE;
>
> Thanks for that Patrick, it indicates that the query's sys_language-part
> avoid a correct result (company.sys_language_uid IN (0,-1) of couse is
> never TRUE when company is NULL).
>
> Cheers,
> Frank


More information about the TYPO3-project-typo3v4mvc mailing list