diff options
| author | Patrick Seeger <pseeger@ccwn.org> | 2014-06-20 15:37:15 +0200 |
|---|---|---|
| committer | Patrick Seeger <pseeger@ccwn.org> | 2014-06-20 15:37:15 +0200 |
| commit | 02d863bc91b58d6a50dd0ec13bbeb07f56ac61ae (patch) | |
| tree | 9ae12adae5d1bd307ebe0a537f79e03d6db5f4ca /protected/models/Veranstaltung.php | |
| parent | 789b6c74e6d9766b64128d20ccecc3a5a6e5e881 (diff) | |
Veranstaltungsanzeige bei Vereinen verschönert
Diffstat (limited to 'protected/models/Veranstaltung.php')
| -rw-r--r-- | protected/models/Veranstaltung.php | 8 |
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( |
