summaryrefslogtreecommitdiff
path: root/app/frontend/model/User.php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-10-25 16:08:14 +0200
committeremkael <emkael@tlen.pl>2016-10-25 18:55:16 +0200
commit95e5a74b0663e9110ea638dd5d809e9fd1541fa9 (patch)
tree7407564370f21e4f6923e2ad615fa01e52ff7b92 /app/frontend/model/User.php
parent6edff35cd3315df12c0b41986eadbf29de8a67b2 (diff)
* model for user auth cookies
Diffstat (limited to 'app/frontend/model/User.php')
-rw-r--r--app/frontend/model/User.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/frontend/model/User.php b/app/frontend/model/User.php
index 5a20582..043269a 100644
--- a/app/frontend/model/User.php
+++ b/app/frontend/model/User.php
@@ -28,7 +28,8 @@ class User extends ActiveRecord {
];
public static $RELATIONS = [
- 'Calendars' => [self::MANY_TO_MANY, 'Calendar', 'user_selections']
+ 'Calendars' => [self::MANY_TO_MANY, 'Calendar', 'user_selections'],
+ 'AuthKeys' => [self::HAS_MANY, 'UserAuthKey', '_user']
];
public static function finder($className=__CLASS__) {