#102635\TYPO3\CMS\Extbase\Persistence\Repository->findByUid does not respect defaultQuerySettings
Description
Settings by
$this->setDefaultQuerySettings( )
in
\TYPO3\CMS\Extbase\Persistence\Repository
will not be respected when calling
\TYPO3\CMS\Extbase\Persistence\Repository->findByUid()
For example with these settings
$this->defaultQuerySettings = $this->createQuery()->getQuerySettings()
->setEnableFieldsToBeIgnored(['disabled'])
->setIgnoreEnableFields( true );
$this->setDefaultQuerySettings( $this->defaultQuerySettings );
native findByUid will will hidden / disabled records. A custom findByUid fixes this:
public function findByUid($uid)
{
$query = $this->createQuery();
$query->matching( $query->equals('uid', $uid) );
$result = $query->execute();
return $result->getFirst();
}Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.