summaryrefslogtreecommitdiff
path: root/protected/models/Verein.php
diff options
context:
space:
mode:
Diffstat (limited to 'protected/models/Verein.php')
-rw-r--r--protected/models/Verein.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/protected/models/Verein.php b/protected/models/Verein.php
index dba05db..83fc21f 100644
--- a/protected/models/Verein.php
+++ b/protected/models/Verein.php
@@ -33,7 +33,7 @@ class Verein extends CActiveRecord
*/
public function tableName()
{
- return 'verein';
+ return 'vereine';
}
/**
@@ -48,8 +48,8 @@ class Verein extends CActiveRecord
array('standort_id, published', 'numerical', 'integerOnly'=>true),
array('name, url', 'length', 'max'=>255),
array('bild, email, slug', 'length', 'max'=>100),
- array("url", "url", "allowEmpty"=>true, "message"=>"Die eingebene URL ist ung�ltig."),
- array("email", "email", "message"=>"Die eingebene eMail-Adresse ist ung�ltig."),
+ array("url", "url", "allowEmpty"=>true, "message"=>"Die eingebene URL ist ungültig."),
+ array("email", "email", "message"=>"Die eingebene eMail-Adresse ist ungültig."),
array("uploadedImage", "file", "types"=>"jpg, gif, png", "allowEmpty"=>true, "wrongType"=>'Die Datei "{file}" konnte nicht hochgeladen werden. Es sind nur Dateien mit den folgenden Endungen erlaubt: {extensions}.'),
array('kontaktdaten, beschreibung', 'safe'),
// The following rule is used by search().
@@ -116,4 +116,10 @@ class Verein extends CActiveRecord
'criteria'=>$criteria,
));
}
+
+ public function behaviors() {
+ return array(
+ 'LoggableBehavior'=>'application.modules.auditTrail.behaviors.LoggableBehavior',
+ );
+ }
} \ No newline at end of file