diff options
Diffstat (limited to 'protected/models/Verein.php')
| -rw-r--r-- | protected/models/Verein.php | 4 |
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"), ); } |
