Commit ff674873 authored by Thomas Löffler's avatar Thomas Löffler

[CLEANUP] Removes occurence of SearchRepository

parent 74ffb8c2
......@@ -29,17 +29,11 @@
class Tx_TerFe2_Domain_Repository_ExtensionRepository extends Tx_TerFe2_Domain_Repository_AbstractRepository
{
/**
* @var Tx_TerFe2_Domain_Repository_SearchRepository
*/
protected $searchRepository;
/**
* @var boolean
*/
protected $showInsecure = TRUE;
/**
* Allow the listing of insecure extensions or not
*
......@@ -153,29 +147,6 @@ class Tx_TerFe2_Domain_Repository_ExtensionRepository extends Tx_TerFe2_Domain_R
return $query->execute();
}
/**
* Returns all extensions by an author
*
* @param Tx_TerFe2_Domain_Model_Author $author The Author to search for
* @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage Objects
*/
public function findByAuthor(Tx_TerFe2_Domain_Model_Author $author)
{
$uids = $this->searchRepository->findUidsByAuthor($author);
// Workaround to enable paginate
$query = $this->createQuery();
$query->getQuerySettings()->setRespectStoragePage(FALSE);
$query->getQuerySettings()->setRespectSysLanguage(FALSE);
$query->setOrderings(
array('extKey' => \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_ASCENDING)
);
$this->match($query, $query->in('uid', $uids));
return $query->execute();
}
/**
*
* @param string $frontendUser
......
Markdown is supported
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