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

Tania Morales admin at taniamorales.com
Fri Mar 11 01:58:11 CET 2016


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.


More information about the TYPO3-project-typo3v4mvc mailing list