Replaced event news type with isevent attribute to support internal and external...
authorjdegroot <jdegroot@735d13b6-9817-0410-8766-e36946ffe9aa>
Wed, 5 Sep 2012 16:39:58 +0000 (16:39 +0000)
committerjdegroot <jdegroot@735d13b6-9817-0410-8766-e36946ffe9aa>
Wed, 5 Sep 2012 16:39:58 +0000 (16:39 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/roq_newsevent/branches/2.0.1.1-externalurls@65906 735d13b6-9817-0410-8766-e36946ffe9aa

Classes/Domain/Repository/EventRepository.php
Configuration/TypoScript/setup.txt

index 9b67c72..b608faa 100644 (file)
@@ -146,6 +146,8 @@ class Tx_RoqNewsevent_Domain_Repository_EventRepository extends Tx_News_Domain_R
             }
         }
 
+        $constraints[] = $query->logicalAnd($query->equals('tx_roqnewsevent_is_event',1));
+
         return $constraints;
     }
 }
index 17487b9..8e8b70c 100644 (file)
@@ -10,7 +10,7 @@ config.tx_extbase {
             Tx_RoqNewsevent_Domain_Model_Event {
                 mapping {
                     tableName = tx_news_domain_model_news
-                    recordType = Tx_RoqNewsevent_Event
+
                     columns {
                         tx_roqnewsevent_is_event.mapOnProperty = isEvent
                         tx_roqnewsevent_startdate.mapOnProperty = eventStartdate