2017-09-01 03:33:54 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Symbiote\GridFieldExtensions\Tests\Stub;
|
|
|
|
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
|
|
use SilverStripe\ORM\DataObject;
|
|
|
|
|
|
|
|
class StubParent extends DataObject implements TestOnly
|
|
|
|
{
|
2018-06-25 02:22:27 +02:00
|
|
|
private static $has_many = [
|
2017-09-01 03:33:54 +02:00
|
|
|
'MyHasMany' => StubOrdered::class,
|
2018-06-25 02:22:27 +02:00
|
|
|
'MyHasManySubclass' => StubSubclass::class,
|
|
|
|
'MyHasManySubclassOrderedVersioned' => StubSubclassOrderedVersioned::class,
|
|
|
|
];
|
2017-09-01 03:33:54 +02:00
|
|
|
|
2018-06-25 02:22:27 +02:00
|
|
|
private static $many_many = [
|
|
|
|
'MyManyMany' => StubOrdered::class,
|
|
|
|
];
|
2017-09-01 03:33:54 +02:00
|
|
|
|
2018-06-25 02:22:27 +02:00
|
|
|
private static $many_many_extraFields = [
|
|
|
|
'MyManyMany' => ['ManyManySort' => 'Int'],
|
|
|
|
];
|
2017-09-01 03:33:54 +02:00
|
|
|
|
|
|
|
private static $table_name = 'StubParent';
|
|
|
|
}
|