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
|
|
|
|
{
|
|
|
|
private static $has_many = array(
|
|
|
|
'MyHasMany' => StubOrdered::class,
|
2018-04-26 05:17:05 +02:00
|
|
|
'MyHasManySubclass' => StubSubclass::class,
|
|
|
|
'MyHasManySubclassOrderedVersioned' => StubSubclassOrderedVersioned::class,
|
2017-09-01 03:33:54 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
private static $many_many = array(
|
|
|
|
'MyManyMany' => StubOrdered::class
|
|
|
|
);
|
|
|
|
|
|
|
|
private static $many_many_extraFields = array(
|
|
|
|
'MyManyMany' => array('ManyManySort' => 'Int')
|
|
|
|
);
|
|
|
|
|
|
|
|
private static $table_name = 'StubParent';
|
|
|
|
}
|