Firesphere /
silverstripe-seeder
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Firesphere\Seeder\Tests\Mock; |
||
| 4 | |||
| 5 | use SilverStripe\CMS\Model\SiteTree; |
||
| 6 | use SilverStripe\Dev\TestOnly; |
||
| 7 | |||
| 8 | class Page extends \Page implements TestOnly |
||
| 9 | { |
||
| 10 | private static $db = [ |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 11 | 'ExtraContent' => 'HTMLText' |
||
| 12 | ]; |
||
| 13 | |||
| 14 | private static $has_one = [ |
||
|
0 ignored issues
–
show
|
|||
| 15 | 'Friend' => Page::class |
||
| 16 | ]; |
||
| 17 | |||
| 18 | private static $has_many = [ |
||
|
0 ignored issues
–
show
|
|||
| 19 | 'Friends' => Page::class |
||
| 20 | ]; |
||
| 21 | |||
| 22 | private static $many_many = [ |
||
|
0 ignored issues
–
show
|
|||
| 23 | 'Quotes' => Quote::class |
||
| 24 | ]; |
||
| 25 | |||
| 26 | private static $table_name = 'SeederTestPage'; |
||
|
0 ignored issues
–
show
|
|||
| 27 | } |
||
| 28 |