silverstripe-framework/tests/php/Dev/FixtureFactoryTest/DataObjectRelation.php
2020-04-20 18:58:09 +01:00

24 lines
511 B
PHP

<?php
namespace SilverStripe\Dev\Tests\FixtureFactoryTest;
use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\DataObject;
class DataObjectRelation extends DataObject implements TestOnly
{
private static $db = [
"Name" => "Varchar"
];
private static $table_name = 'FixtureFactoryTest_DataObjectRelation';
private static $belongs_many_many = [
"TestParent" => TestDataObject::class
];
private static $has_one = [
'MyParent' => TestDataObject::class
];
}