summaryrefslogtreecommitdiff
path: root/app/php/model/Calendar.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/php/model/Calendar.php')
-rw-r--r--app/php/model/Calendar.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/app/php/model/Calendar.php b/app/php/model/Calendar.php
index 4438572..9e1afce 100644
--- a/app/php/model/Calendar.php
+++ b/app/php/model/Calendar.php
@@ -1,12 +1,13 @@
<?php
+Prado::using('Application.db.ActiveRecord');
Prado::using('Application.model.Entry');
Prado::using('Application.model.Category');
-class Calendar extends TActiveRecord {
+class Calendar extends ActiveRecord {
const TABLE = 'calendars';
-
+
public $UID;
public $Url;
public $Name;
@@ -23,18 +24,18 @@ class Calendar extends TActiveRecord {
'website' => 'Website',
'visible' => 'Visible',
'last_updated' => 'LastUpdated',
- '_category' => 'CategoryID'
+ '_category' => 'CategoryID'
];
public static $RELATIONS = [
'Entries' => [self::HAS_MANY, 'Entry', '_calendar'],
'Category' => [self::BELONGS_TO, 'Category', '_category']
];
-
+
public static function finder($className=__CLASS__) {
return parent::finder($className);
}
-
+
}
?>