Project

General

Profile

Actions

Bug #94141

closed

Hidden records are taken into account in m:n relations but instantiated as empty objects

Added by Julian Hofmann almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2021-05-14
Due date:
% Done:

0%

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

Description

Since v10.4.16 domain properties to hidden records are counting in the parent model but are instantiated as empty objects.

Short Example:
A news record has relations to two categories "Category 1" and "Category 2". The first one is a hidden record.

Till TYPO3 v10.4.15 (Bildschirmfoto 2021-05-14 um 15.43.30.png):

DebuggerUtility::var_dump($news->getCategories(), __METHOD__);

TYPO3\CMS\Extbase\Persistence\Generic\LazyObjectStorage (1 items)

Since TYPO3 v10.4.16 (Bildschirmfoto 2021-05-14 um 15.45.12.png):

DebuggerUtility::var_dump($news->getCategories(), __METHOD__);

TYPO3\CMS\Extbase\Persistence\Generic\LazyObjectStorage (2 items)


Files


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #88919: QueryBuilder with DefaultRestrictionContainer effectivly transforms outer joins to inner joins because the restrictions are applied to all join tables unconditionallyClosed2019-08-05

Actions
Is duplicate of TYPO3 Core - Bug #94119: Ghost record for field with mm relation when relation record is disabledClosedMarkus Klein2021-05-12

Actions
Actions

Also available in: Atom PDF