Project

General

Profile

Actions

Bug #45873

open

querySettings setRespectSysLanguage or setSysLanguageUid does not work

Added by Dominic Garms about 11 years ago. Updated 5 months ago.

Status:
Needs Feedback
Priority:
Must have
Assignee:
-
Category:
Extbase + l10n
Start date:
2013-02-27
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Hello,
currently its not possible to get a translated record after update from 4.7 to 6.0 or 6.1. This was working in 4.7:

$query = $this->createQuery();
$query->getQuerySettings()->setRespectSysLanguage(false);
$result = $query->matching(
  $query->logicalAnd($query->equals('sys_language_uid', $translatedLangUid), $query->equals('l10n_parent', $uidOfDefaultLang)))
    ->execute();
$myObject = $result->getFirst();

In 6.x its currently impossible to get the translated record with the data query, because the function in typo3DBbackend.php doLanguageAndWorkspaceOverlay() always overlays the record with the default language record.

If I try to set setSysLanguageUid($translatedLangUid) then I get the translated record but weirdly the UID gets overwritten with the default language UID and inside of the object I find _localizedUid and _languageUid. As I can't reach this two attributes I have no idea how to correctly update or add the object into my repository.

As in 4.7 I could get this working I think it is a bug, or some major changes happens where I couldn't find any information.

Regards,
Dominic


Files

45873-annotated.png (38.4 KB) 45873-annotated.png Screenshot of Result (BE Module) Sybille Peters, 2018-02-02 18:39

Related issues 5 (1 open4 closed)

Related to TYPO3 Core - Bug #32216: OrderBy on translated records doesn't work properlyClosed2011-11-30

Actions
Related to TYPO3 Core - Bug #47192: setRespectSysLanguage(FALSE) doesn't prevent language overlay when fetching localized objectsClosed2013-04-13

Actions
Related to TYPO3 Core - Bug #56855: Extbase tries to overlay pages_language_overlay recordsClosedStanislas Rolland2014-03-13

Actions
Related to TYPO3 Core - Bug #59992: Persistence session doesn't take overlays into accountClosed2014-06-30

Actions
Related to TYPO3 Core - Bug #86405: querySetting setRespectSysLanguage (wrong implementation of "strict"-mode)New2018-09-27

Actions
Actions

Also available in: Atom PDF