#95053findByUid not respecting default query settings of repository
Description
In my repository I use:
public function initializeObject()
{
$querySettings = new Typo3QuerySettings();
$querySettings->setRespectStoragePage(false);
$querySettings->setRespectSysLanguage(false);
$querySettings->setIgnoreEnableFields(true);
$this->setDefaultQuerySettings($querySettings);
}
Although setIgnoreEnableFields was set to true in the default query settings I am not able to find hidden elements with findByUid in my controller.
As a workaround, I’ve overridden findByUid in the repository as follows:
public function findByUid($uid)
{
$query = $this->createQuery();
return $query->matching($query->equals('uid', $uid))->execute()->getFirst();
}
This seems to be related to:
https://forge.typo3.org/projects/typo3cms-core/repository/1749/revisions/84c4ff2f2ec1ce98a9b170a6869b57cb4bb32a0c
I am not sure if this is a bug. Possibly this is just a missing piece in the documentation.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.