mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-08-30 14:36:06 +02:00
30 lines
646 B
PHP
30 lines
646 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Dev\Tests\FixtureFactoryTest;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
use SilverStripe\ORM\DataObject;
|
|
|
|
class TestDataObject extends DataObject implements TestOnly
|
|
{
|
|
private static $db = [
|
|
"Name" => "Varchar"
|
|
];
|
|
|
|
private static $table_name = 'FixtureFactoryTest_TestDataObject';
|
|
|
|
private static $has_many = [
|
|
"HasManyRelation" => DataObjectRelation::class
|
|
];
|
|
|
|
private static $many_many = [
|
|
"ManyManyRelation" => DataObjectRelation::class
|
|
];
|
|
|
|
private static $many_many_extraFields = [
|
|
"ManyManyRelation" => [
|
|
"Label" => "Varchar"
|
|
]
|
|
];
|
|
}
|