mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 17:05:39 +02:00
23a5154c97
* ENH: Update reorderItems() to use ORM where possible * Increase test coverage of orderable rows
28 lines
772 B
PHP
28 lines
772 B
PHP
<?php
|
|
|
|
namespace Symbiote\GridFieldExtensions\Tests\Stub;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
use SilverStripe\ORM\DataObject;
|
|
|
|
class StubParent extends DataObject implements TestOnly
|
|
{
|
|
private static $has_many = [
|
|
'MyHasMany' => StubOrdered::class,
|
|
'MyHasManySubclass' => StubSubclass::class,
|
|
'MyHasManySubclassOrderedVersioned' => StubSubclassOrderedVersioned::class,
|
|
];
|
|
|
|
private static $many_many = [
|
|
'MyManyMany' => StubOrdered::class,
|
|
'MyManyManyVersioned' => StubSubclassOrderedVersioned::class,
|
|
];
|
|
|
|
private static $many_many_extraFields = [
|
|
'MyManyMany' => ['ManyManySort' => 'Int'],
|
|
'MyManyManyVersioned' => ['ManyManySort' => 'Int'],
|
|
];
|
|
|
|
private static $table_name = 'StubParent';
|
|
}
|