summaryrefslogtreecommitdiff
path: root/app/php/model/Category.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/php/model/Category.php')
-rw-r--r--app/php/model/Category.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/php/model/Category.php b/app/php/model/Category.php
index 03a368a..5e71e53 100644
--- a/app/php/model/Category.php
+++ b/app/php/model/Category.php
@@ -1,8 +1,9 @@
<?php
+Prado::using('Application.db.ActiveRecord');
Prado::using('Application.model.Calendar');
-class Category extends TActiveRecord {
+class Category extends ActiveRecord {
const TABLE = 'categories';
@@ -17,11 +18,11 @@ class Category extends TActiveRecord {
public static $RELATIONS = [
'Calendars' => [self::HAS_MANY, 'Calendar', '_category']
];
-
+
public static function finder($className=__CLASS__) {
return parent::finder($className);
}
-
+
}
?>