Issue Bug Closed

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

Julian Hofmann 05/14/21, 13:46 updated 05/18/21, 13:49

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.