summaryrefslogtreecommitdiff
path: root/protected/models/Verein.php
diff options
context:
space:
mode:
authorPatrick Seeger <pseeger@ccwn.org>2012-05-06 22:45:08 +0200
committerPatrick Seeger <pseeger@ccwn.org>2012-05-06 22:45:08 +0200
commit5b39d6bf7f34ed52059410f3d0af3799aeff2113 (patch)
tree0a0b1abdb0b69f8298410bf439f5d4296276bd69 /protected/models/Verein.php
parent3d72ad7ce1aac1151f5499ef19fc04999ba685d1 (diff)
vereinsansicht basis
Diffstat (limited to '')
-rw-r--r--protected/models/Verein.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/protected/models/Verein.php b/protected/models/Verein.php
index f0d30dd..6d84c91 100644
--- a/protected/models/Verein.php
+++ b/protected/models/Verein.php
@@ -66,7 +66,9 @@ class Verein extends CActiveRecord
// NOTE: you may need to adjust the relation name and the related
// class name for the relations automatically generated below.
return array(
- "standort"=>array(self::HAS_ONE, "Standort", array('id'=>'standort_id'))
+ "standort"=>array(self::HAS_ONE, "Standort", array('id'=>'standort_id')),
+ "angebote"=>array(self::MANY_MANY, "Angebot", "angebot_verein(verein_id,angebot_id)"),
+ "veranstaltungen"=>array(self::HAS_MANY, "Veranstaltung","verein_id"),
);
}