blob: 8a33f67f28bfe899ff20d42735479dc7a9a8c40b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<?php
Prado::using('Application.model.Calendar');
class User extends TActiveRecord {
const TABLE = 'users';
public $ID;
public $Login;
public $Password;
public $IsAdmin;
public $LastLogin;
public static $COLUMN_MAPPING = [
'id' => 'ID',
'login' => 'Login',
'password' => 'Password',
'is_admin' => 'IsAdmin',
'last_login' => 'LastLogin'
];
public static $RELATIONS = [
'Calendars' => [self::MANY_TO_MANY, 'Calendar', 'user_selections']
];
public static function finder($className=__CLASS__) {
return parent::finder($className);
}
}
?>
|