blob: 254658b43a63ce2e9066b2c498446486ba72e350 (
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
|
<?php
Prado::using('Application.db.ActiveRecord');
Prado::using('Application.model.Calendar');
class Category extends ActiveRecord {
const TABLE = 'categories';
public $ID;
public $Name;
public $Priority;
public static $COLUMN_MAPPING = [
'id' => 'ID',
'name' => 'Name',
'priority' => 'Priority'
];
public static $RELATIONS = [
'Calendars' => [self::HAS_MANY, 'Calendar', '_category']
];
}
?>
|