mirror of
https://github.com/silverstripe/silverstripe-restfulserver
synced 2024-10-22 14:05:58 +02:00
30 lines
567 B
PHP
30 lines
567 B
PHP
<?php
|
|
|
|
namespace SilverStripe\RestfulServer\Tests\Stubs;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
use SilverStripe\ORM\DataObject;
|
|
|
|
class AuthorSortedPageRelation extends DataObject implements TestOnly
|
|
{
|
|
/**
|
|
* @var string
|
|
*/
|
|
private static $table_name = 'AuthorSortedPageRelation';
|
|
|
|
/**
|
|
* @var array
|
|
*/
|
|
private static $has_one = [
|
|
'Parent' => RestfulServerTestAuthor::class,
|
|
'SortedPage' => RestfulServerTestPage::class,
|
|
];
|
|
|
|
/**
|
|
* @var array
|
|
*/
|
|
private static $db = [
|
|
'Sort' => 'Int',
|
|
];
|
|
}
|