30 lines
671 B
PHP
Raw Normal View History

2016-10-14 14:30:05 +13:00
<?php
namespace SilverStripe\Dev\Tests\FixtureFactoryTest;
use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\DataObject;
class TestDataObject extends DataObject implements TestOnly
{
private static $db = array(
"Name" => "Varchar"
);
2016-10-14 14:30:05 +13:00
private static $table_name = 'FixtureFactoryTest_TestDataObject';
2016-10-14 14:30:05 +13:00
private static $has_many = array(
"HasManyRelation" => DataObjectRelation::class
);
2016-10-14 14:30:05 +13:00
private static $many_many = array(
"ManyManyRelation" => DataObjectRelation::class
);
2016-10-14 14:30:05 +13:00
private static $many_many_extraFields = array(
"ManyManyRelation" => array(
"Label" => "Varchar"
)
);
2016-10-14 14:30:05 +13:00
}