32 lines
		
	
	
		
			936 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			936 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
/*
 | 
						|
 * This file is part of the package thucke/th-rating.
 | 
						|
 *
 | 
						|
 * For the full copyright and license information, please read the
 | 
						|
 * LICENSE file that was distributed with this source code.
 | 
						|
 */
 | 
						|
 | 
						|
namespace WapplerSystems\BookmarksLikesRatings\Domain\Repository;
 | 
						|
 | 
						|
use TYPO3\CMS\Extbase\Domain\Repository\FrontendUserRepository;
 | 
						|
use TYPO3\CMS\Extbase\Persistence\Generic\QuerySettingsInterface;
 | 
						|
 | 
						|
/**
 | 
						|
 * A repository for votes
 | 
						|
 */
 | 
						|
class VoterRepository extends FrontendUserRepository
 | 
						|
{
 | 
						|
    /**
 | 
						|
     * Initialze this repository
 | 
						|
     */
 | 
						|
    public function initializeObject()
 | 
						|
    {
 | 
						|
        //Even hidden or deleted FE Users  should be found
 | 
						|
        /** @var \TYPO3\CMS\Extbase\Persistence\Generic\QuerySettingsInterface $querySettings */
 | 
						|
        $querySettings = $this->objectManager->get(QuerySettingsInterface::class);
 | 
						|
        $querySettings->setIgnoreEnableFields(true);
 | 
						|
        $this->setDefaultQuerySettings($querySettings);
 | 
						|
    }
 | 
						|
}
 |