diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/php/model/UserPreference.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/app/php/model/UserPreference.php b/app/php/model/UserPreference.php new file mode 100644 index 0000000..ff32529 --- /dev/null +++ b/app/php/model/UserPreference.php @@ -0,0 +1,21 @@ +<?php + +class UserPreference extends TActiveRecord { + + const TABLE = 'user_selections'; + + public $UserID; + public $CalendarID; + + public static $COLUMN_MAPPING = [ + '_user' => 'UserID', + '_calendar' => 'CalendarID' + ]; + + public static function finder($className=__CLASS__) { + return parent::finder($className); + } + +} + +?> |