mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 17:05:39 +02:00
28 lines
572 B
PHP
28 lines
572 B
PHP
<?php
|
|
|
|
namespace Symbiote\GridFieldExtensions\Tests\Stub;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
use SilverStripe\ORM\DataObject;
|
|
|
|
class StubOrdered extends DataObject implements TestOnly
|
|
{
|
|
private static $db = array(
|
|
'Sort' => 'Int'
|
|
);
|
|
|
|
private static $has_one = array(
|
|
'Parent' => StubParent::class
|
|
);
|
|
|
|
private static $has_many = array(
|
|
'Children' => StubOrderableChild::class,
|
|
);
|
|
|
|
private static $belongs_many_many =array(
|
|
'MyManyMany' => StubParent::class,
|
|
);
|
|
|
|
private static $table_name = 'StubOrdered';
|
|
}
|