1 | <?php |
||
2 | |||
3 | namespace Gurucomkz\EagerLoading\Tests\Models; |
||
4 | |||
5 | use SilverStripe\ORM\DataObject; |
||
6 | |||
7 | class TeamSupporter extends DataObject |
||
8 | { |
||
9 | private static $table_name = 'TeamSupporter'; |
||
10 | |||
11 | private static $db = [ |
||
12 | 'Ranking' => 'Int', |
||
13 | ]; |
||
14 | |||
15 | private static $has_one = [ |
||
16 | 'Team' => Team::class, |
||
17 | 'Supporter' => Supporter::class, |
||
18 | ]; |
||
19 | |||
20 | private static $default_sort = '"TeamSupporter"."Ranking" ASC'; |
||
0 ignored issues
–
show
introduced
by
![]() |
|||
21 | } |
||
22 |