1 | <?php |
||
2 | |||
3 | namespace SilverStripe\Comments\Tests\Stubs; |
||
4 | |||
5 | use SilverStripe\Dev\TestOnly; |
||
6 | use SilverStripe\ORM\DataObject; |
||
7 | |||
8 | class Team extends DataObject implements TestOnly |
||
9 | { |
||
10 | private static $table_name = 'CommentsTest_Team'; |
||
0 ignored issues
–
show
introduced
by
![]() |
|||
11 | |||
12 | private static $db = array( |
||
0 ignored issues
–
show
|
|||
13 | 'Name' => 'Varchar', |
||
14 | 'City' => 'Varchar', |
||
15 | ); |
||
16 | |||
17 | private static $many_many = [ |
||
0 ignored issues
–
show
|
|||
18 | 'Players' => Player::class, |
||
19 | ]; |
||
20 | |||
21 | private static $has_many = [ |
||
0 ignored issues
–
show
|
|||
22 | 'Cheerleaders' => Cheerleader::class, |
||
23 | ]; |
||
24 | |||
25 | private static $searchable_fields = [ |
||
0 ignored issues
–
show
|
|||
26 | 'Name', |
||
27 | 'City', |
||
28 | 'Cheerleaders.Name', |
||
29 | ]; |
||
30 | |||
31 | public function canView($member = null) |
||
32 | { |
||
33 | return true; |
||
34 | } |
||
35 | } |
||
36 |