I've tried to get a list with all Frontend Usergroups
I've tried this:
/**
* Protected Variable FrontendUserGroupRepository wird mit NULL initialisiert.
*
* @var \ReRe\Rere\Domain\Repository\FrontendUserGroupRepository
* @inject
*/
protected $FrontendUserGroupRepository = NULL;
and then this
$feUserGroups = $this->frontendUserGroupRepository->findAll();
But the list is always empty, even if there are 2 usergroups in the database.
Update ... i tried this as repository
class FrontendUserGroupRepository extends \Typo3\CMS\Extbase\Domain\Repository\FrontendUserGroupRepository {
// Example for repository wide settings
public function initializeObject() {
/** @var $defaultQuerySettings Tx_Extbase_Persistence_Typo3QuerySettings */
$defaultQuerySettings = $this->objectManager->get('Tx_Extbase_Persistence_Typo3QuerySettings');
// go for $defaultQuerySettings = $this->createQuery()->getQuerySettings(); if you want to make use of the TS persistence.storagePid with defaultQuerySettings(), see #51529 for details
// don't add the pid constraint
$defaultQuerySettings->setRespectStoragePage(FALSE);
// don't add fields from enablecolumns constraint
$defaultQuerySettings->setRespectEnableFields(FALSE);
// don't add sys_language_uid constraint
$defaultQuerySettings->setRespectSysLanguage(FALSE);
$this->setDefaultQuerySettings($defaultQuerySettings);
}
}
but I got this error:
Could not analyse class:Typo3\CMS\Extbase\Domain\Repository\FEUserGroupsRepositry maybe not loaded or no autoloader
I've added the a new dependecy injection and reinstalled the module ...