summaryrefslogtreecommitdiff
path: root/protected/models
diff options
context:
space:
mode:
authorccwn <tzur@ccwn.org>2012-04-15 17:03:33 +0200
committerccwn <tzur@ccwn.org>2012-04-15 17:03:33 +0200
commit6b415d25fd106d42ada013bff376e9bcd5d07f8b (patch)
tree1effe7dfb46a9c471653e107ebc11631dfee156f /protected/models
parent155f251b1c4f5681c5c7085254bc468acb1060c9 (diff)
Speis & Trank hinzugefügt
Diffstat (limited to 'protected/models')
-rw-r--r--protected/models/Angebot.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/protected/models/Angebot.php b/protected/models/Angebot.php
index 03b5496..baa31b8 100644
--- a/protected/models/Angebot.php
+++ b/protected/models/Angebot.php
@@ -55,6 +55,7 @@ class Angebot extends CActiveRecord
// NOTE: you may need to adjust the relation name and the related
// class name for the relations automatically generated below.
return array(
+ "kategorie"=>array(self::HAS_ONE, "Kategorie", array('id'=>'kategorie_id'))
);
}
@@ -66,9 +67,10 @@ class Angebot extends CActiveRecord
return array(
'id' => 'ID',
'kategorie_id' => 'Kategorie',
+ 'kategorie' => 'Kategorie',
'name' => 'Name',
'beschreibung' => 'Beschreibung',
- 'published' => 'Published',
+ 'published' => 'Öffentlich',
);
}