summaryrefslogtreecommitdiff
path: root/protected/models/Angebot.php
diff options
context:
space:
mode:
Diffstat (limited to 'protected/models/Angebot.php')
-rw-r--r--protected/models/Angebot.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/protected/models/Angebot.php b/protected/models/Angebot.php
index 7791bcb..d6ae02a 100644
--- a/protected/models/Angebot.php
+++ b/protected/models/Angebot.php
@@ -27,7 +27,7 @@ class Angebot extends CActiveRecord
*/
public function tableName()
{
- return 'angebot';
+ return 'angebote';
}
/**
@@ -38,6 +38,7 @@ class Angebot extends CActiveRecord
// NOTE: you should only define rules for those attributes that
// will receive user inputs.
return array(
+ array('name, kategorie_id', 'required'),
array('kategorie_id, published', 'numerical', 'integerOnly'=>true),
array('name', 'length', 'max'=>80),
array('beschreibung', 'safe'),
@@ -96,4 +97,10 @@ class Angebot extends CActiveRecord
'criteria'=>$criteria,
));
}
+
+ public function behaviors() {
+ return array(
+ 'LoggableBehavior'=>'application.modules.auditTrail.behaviors.LoggableBehavior',
+ );
+ }
} \ No newline at end of file