Project

General

Profile

Actions

Bug #91324

open

Visibility restrictions are added twice for Extbase ObjectStorage relations

Added by Philipp Seßner about 4 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2020-05-06
Due date:
% Done:

0%

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

Description

In \TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbQueryParser::convertQueryToDoctrineQueryBuilder(), a \TYPO3\CMS\Core\Database\Query\QueryBuilder is created by calling \TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbQueryParser::initializeQueryBuilder(). If $source is a \TYPO3\CMS\Extbase\Persistence\Generic\Qom\JoinInterface, which is the case for ObjectStorage, default TYPO3 enablefield constraints (QueryBuilder restrictions) do not get removed. This is done when $source is not a JoinInterface.
After wards, constraints are added in \TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbQueryParser::addTypo3Constraints(), where Query::$querySettings are taken into account.

So there are two Issues:
  1. enable field constraints are added twice to the resulting SQL query
  2. manipulated QuerySettings in an implementation of \TYPO3\CMS\Extbase\Persistence\Generic\QueryFactory\QueryFactory are ignored for relations with ObjectStorage (suggested here: https://stackoverflow.com/a/39994951/13483282)

Related issues 2 (1 open1 closed)

Related to TYPO3 Core - Bug #94119: Ghost record for field with mm relation when relation record is disabledClosedMarkus Klein2021-05-12

Actions
Related to TYPO3 Core - Bug #90013: Conversion of Extbase to Doctrine query disregards enable field settings for join queries (MM relations)New2019-12-25

Actions
Actions #1

Updated by Markus Klein about 3 years ago

  • Related to Bug #94119: Ghost record for field with mm relation when relation record is disabled added
Actions #2

Updated by Markus Klein about 3 years ago

  • Related to Bug #90013: Conversion of Extbase to Doctrine query disregards enable field settings for join queries (MM relations) added
Actions

Also available in: Atom PDF