mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-08-30 14:36:06 +02:00
24 lines
511 B
PHP
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
|
|
];
|
|
}
|