Commit cecd4bcf authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[BUGFIX] Fix QuerySetting initialisation

parent 3bdcf7f6
...@@ -29,6 +29,7 @@ use TYPO3\CMS\Core\Database\ConnectionPool; ...@@ -29,6 +29,7 @@ use TYPO3\CMS\Core\Database\ConnectionPool;
use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup; use TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup;
use TYPO3\CMS\Extbase\Object\ObjectManagerInterface; use TYPO3\CMS\Extbase\Object\ObjectManagerInterface;
use TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings;
/** /**
* Frontend User Group Repository * Frontend User Group Repository
...@@ -43,7 +44,7 @@ class FrontendUserGroupRepository extends \TYPO3\CMS\Extbase\Domain\Repository\F ...@@ -43,7 +44,7 @@ class FrontendUserGroupRepository extends \TYPO3\CMS\Extbase\Domain\Repository\F
public function __construct(ObjectManagerInterface $objectManager) { public function __construct(ObjectManagerInterface $objectManager) {
parent::__construct($objectManager); parent::__construct($objectManager);
$this->objectType = FrontendUserGroup::class; $this->objectType = FrontendUserGroup::class;
$querySettings = $this->createQuery()->getQuerySettings(); $querySettings = GeneralUtility::makeInstance(Typo3QuerySettings::class);
$querySettings->setRespectStoragePage(FALSE); $querySettings->setRespectStoragePage(FALSE);
$this->setDefaultQuerySettings($querySettings); $this->setDefaultQuerySettings($querySettings);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment