[TYPO3-mvc] Re: multi language site, records fetched two times
Alex Tuveri
at at uniud.it
Fri Jul 8 15:36:28 CEST 2016
I found a solution, but only the experts can give a correct answer,
Adding some lines such as:
$query->matching(
$query->logicalAnd(
$query->greaterThanOrEqual('endtimenormaldate',$timefrom),
$query->equals('sys_language_uid','0'),
$query->equals('hidden','0'),
$query->equals('deleted','0')
)
);
condition matching -> deleted = 0 and sys_language_uid = 0
and modifying the
public function initializeObject()
to
$querySettings->setRespectSysLanguage(FALSE);
all seems to work correctly, but I'm not sure about this solution
removing
$query->equals('sys_language_uid','0'),
nothing works again
and
changing
$query->equals('sys_language_uid','0'),
to '1'
seems to be ininfluent.... ?
More information about the TYPO3-project-typo3v4mvc
mailing list