TYPO3 Extbase: Get related disabled/hidden object
ext_localconf.php $extbaseObjectContainer = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance( \TYPO3\CMS\Extbase\Object\Container\Container::class ); $extbaseObjectContainer->registerImplementation( \TYPO3\CMS\Extbase\Persistence\Generic\QueryFactoryInterface::class, \Vendor\Extensionname\Persistence\Generic\QueryFactory::class ); Object Vendor\Extensionname\Persistence\Generic\QueryFactory.php <?php namespace Vendor\Extensionname\Persistence\Generic; use Vendor\Extensionname\Domain\Model\Objectname; class QueryFactory extends \TYPO3\CMS\Extbase\Persistence\Generic\QueryFactory { public function create($className) { $query = parent::create($className); if (is_a($className, Objectname::class, true)) {...