@@ -13,12 +13,12 @@ discard block |
||
13 | 13 | |
14 | 14 | class Save extends \Model { |
15 | 15 | |
16 | - public static $cols = [ |
|
17 | - 'name' => ['type' => 'text'], |
|
18 | - 'user_id' => ['type' => 'select', 'source' => 'relation', 'relation' => 'user'] |
|
19 | - ]; |
|
16 | + public static $cols = [ |
|
17 | + 'name' => ['type' => 'text'], |
|
18 | + 'user_id' => ['type' => 'select', 'source' => 'relation', 'relation' => 'user'] |
|
19 | + ]; |
|
20 | 20 | |
21 | - public static function relations() { |
|
21 | + public static function relations() { |
|
22 | 22 | return [ |
23 | 23 | 'values' => [ |
24 | 24 | 'type' => 'many', |
@@ -31,6 +31,6 @@ discard block |
||
31 | 31 | 'col' => 'user_id' |
32 | 32 | ] |
33 | 33 | ]; |
34 | - } |
|
34 | + } |
|
35 | 35 | |
36 | 36 | } |