summaryrefslogtreecommitdiff
path: root/protected/models/Veranstaltung.php
diff options
context:
space:
mode:
Diffstat (limited to 'protected/models/Veranstaltung.php')
-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(