silverstripe /
silverstripe-elemental
| 1 | <?php |
||
| 2 | |||
| 3 | namespace DNADesign\Elemental\Tests\Src; |
||
| 4 | |||
| 5 | use DNADesign\Elemental\Models\ElementalArea; |
||
| 6 | use SilverStripe\ORM\DataObject; |
||
| 7 | use SilverStripe\Dev\TestOnly; |
||
| 8 | |||
| 9 | class TestDataObject extends DataObject implements TestOnly |
||
| 10 | { |
||
| 11 | private static $table_name = 'TestDataObject'; |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 12 | |||
| 13 | private static array $db = [ |
||
|
0 ignored issues
–
show
|
|||
| 14 | 'Title' => 'Varchar(255)', |
||
| 15 | 'Content' => 'HTMLText', |
||
| 16 | ]; |
||
| 17 | |||
| 18 | private static $has_one = [ |
||
|
0 ignored issues
–
show
|
|||
| 19 | 'ElementalArea' => ElementalArea::class, |
||
| 20 | ]; |
||
| 21 | |||
| 22 | private static $owns = [ |
||
|
0 ignored issues
–
show
|
|||
| 23 | 'ElementalArea', |
||
| 24 | ]; |
||
| 25 | } |
||
| 26 |