[TASK] Declaration createConstraintsFromDemand not compatible with EXT:news 87/31087/2
authorLorenz Ulrich <lorenz.ulrich@visol.ch>
Mon, 23 Jun 2014 17:52:16 +0000 (19:52 +0200)
committerJochem de Groot <jochemdegroot@roquin.nl>
Tue, 22 Jul 2014 10:32:54 +0000 (12:32 +0200)
The declaration of Tx_RoqNewsevent_Domain_Repository_EventRepository::
createConstraintsFromDemand() is no longer compatible with EXT:news.
The QueryInterface must be changed to the namespaced variant.

Releases: 3.0
Resolves: #59827
Change-Id: I00def9a1e9e80082635ddb0167e424852fc0635b
Reviewed-on: https://review.typo3.org/31087
Reviewed-by: Jochem de Groot <jochemdegroot@roquin.nl>
Tested-by: Jochem de Groot <jochemdegroot@roquin.nl>
Classes/Domain/Repository/EventRepository.php

index 091798d..ad94599 100644 (file)
@@ -52,7 +52,7 @@ class Tx_RoqNewsevent_Domain_Repository_EventRepository extends Tx_News_Domain_R
      * @param Tx_News_Domain_Model_DemandInterface $demand
      * @return array<Tx_Extbase_Persistence_QOM_Constraint>
      */
-    protected function createConstraintsFromDemand(Tx_Extbase_Persistence_QueryInterface $query, Tx_News_Domain_Model_DemandInterface $demand) {
+    protected function createConstraintsFromDemand(\TYPO3\CMS\Extbase\Persistence\QueryInterface $query, Tx_News_Domain_Model_DemandInterface $demand) {
         $constraints    = array();
 
         if ($demand->getCategories() && $demand->getCategories() !== '0') {