[TYPO3-mvc] querySettings setRespectSysLanguage or setSysLanguageUid does further not work in 6.2?

Johannes C. Schulz info at enzephalon.de
Fri Mar 11 08:46:25 CET 2016


Hello Tanja

I'm alos waiting for a patch - "all" of us are waiting ;-)

Maybe something from here can help you:
https://forge.typo3.org/issues/45873#change-289806

Best regards
Johannes


-----Ursprüngliche Nachricht-----
Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org
[mailto:typo3-project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag von
Tania Morales
Gesendet: Freitag, 11. März 2016 01:58
An: typo3-project-typo3v4mvc at lists.typo3.org
Betreff: Re: [TYPO3-mvc] querySettings setRespectSysLanguage or
setSysLanguageUid does further not work in 6.2?

I also run into this issues several times, mainly on backend modules where
all translated records need to be processed at the same time. 

Right now I really need a solution for an extension where records need to be
imported from a CSV file where the translations also need to be imported,
and as relations to other objects are also using the language field, this
error makes it not possible to use objects to create the relations. And we
end up using INSERT and SELECT statements which takes away so much of
extbase capabilities. Upgrading to version 7 is  not suitable at the moment.

This is the code that we need to get to work:

$query = $this->createQuery();

$query->getQuerySettings()->setRespectSysLanguage(FALSE);
$query->matching(
   $query->logicalAnd(
      $query->equals('key', $key),
      $query->equals('sys_language_uid', $languageUid)
   )
);


I hope this information is clear for Helmut, even though there are not many
general cases for this fix the function setRespectSysLanguage should do what
it is supposed to do.
_______________________________________________
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