silverstripe-framework/tests/php/Dev/FixtureFactoryTest/DataObjectRelation.php

24 lines
511 B
PHP
Raw Normal View History

2016-10-14 03:30:05 +02:00
<?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"
];
2016-10-14 03:30:05 +02:00
private static $table_name = 'FixtureFactoryTest_DataObjectRelation';
2016-10-14 03:30:05 +02:00
private static $belongs_many_many = [
"TestParent" => TestDataObject::class
];
2016-10-14 03:30:05 +02:00
private static $has_one = [
'MyParent' => TestDataObject::class
];
2016-10-14 03:30:05 +02:00
}