1 | <?php |
||
2 | |||
3 | namespace Gurucomkz\EagerLoading\Tests\Models; |
||
4 | |||
5 | use Gurucomkz\EagerLoading\EagerLoaderMultiAccessor; |
||
6 | use SilverStripe\Dev\TestOnly; |
||
7 | use SilverStripe\ORM\DataObject; |
||
8 | |||
9 | class Music extends DataObject implements TestOnly |
||
10 | { |
||
11 | use EagerLoaderMultiAccessor; |
||
12 | private static $table_name = 'TestMusic'; |
||
13 | private static $db = [ |
||
14 | 'Title' => 'Varchar' |
||
15 | ]; |
||
16 | |||
17 | private static $belongs_many_many = [ |
||
18 | 'Players' => Player::class, |
||
19 | ]; |
||
20 | |||
21 | private static $export_fields = [ |
||
0 ignored issues
–
show
introduced
by
![]() |
|||
22 | 'ID' => 'ID', |
||
23 | 'Title' => 'Title', |
||
24 | ]; |
||
25 | } |
||
26 |