Total Complexity | 1 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class Team extends DataObject implements TestOnly |
||
9 | { |
||
10 | private static $table_name = 'CommentsTest_Team'; |
||
|
|||
11 | |||
12 | private static $db = array( |
||
13 | 'Name' => 'Varchar', |
||
14 | 'City' => 'Varchar', |
||
15 | ); |
||
16 | |||
17 | private static $many_many = [ |
||
18 | 'Players' => Player::class, |
||
19 | ]; |
||
20 | |||
21 | private static $has_many = [ |
||
22 | 'Cheerleaders' => Cheerleader::class, |
||
23 | ]; |
||
24 | |||
25 | private static $searchable_fields = [ |
||
26 | 'Name', |
||
27 | 'City', |
||
28 | 'Cheerleaders.Name', |
||
29 | ]; |
||
30 | |||
31 | public function canView($member = null) |
||
36 |