summaryrefslogtreecommitdiff
path: root/protected/models/Veranstaltung.php
diff options
context:
space:
mode:
authorPatrick Seeger <pseeger@ccwn.org>2014-06-20 15:37:15 +0200
committerPatrick Seeger <pseeger@ccwn.org>2014-06-20 15:37:15 +0200
commit02d863bc91b58d6a50dd0ec13bbeb07f56ac61ae (patch)
tree9ae12adae5d1bd307ebe0a537f79e03d6db5f4ca /protected/models/Veranstaltung.php
parent789b6c74e6d9766b64128d20ccecc3a5a6e5e881 (diff)
Veranstaltungsanzeige bei Vereinen verschönert
Diffstat (limited to '')
-rw-r--r--protected/models/Veranstaltung.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/protected/models/Veranstaltung.php b/protected/models/Veranstaltung.php
index 5d90e6d..044bc03 100644
--- a/protected/models/Veranstaltung.php
+++ b/protected/models/Veranstaltung.php
@@ -156,6 +156,14 @@ class Veranstaltung extends CActiveRecord
return $this;
}
+ public function parentVerein($vereinId=0)
+ {
+ $this->getDbCriteria()->mergeWith(array(
+ 'condition'=>"verein_id = $vereinId",
+ ));
+ return $this;
+ }
+
public function scopes()
{
return array(