mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
34 lines
533 B
PHP
34 lines
533 B
PHP
|
<?php
|
||
|
|
||
|
namespace SilverStripe\ORM\Tests\ChangeSetTest;
|
||
|
|
||
|
use SilverStripe\Dev\TestOnly;
|
||
|
use SilverStripe\ORM\DataObject;
|
||
|
use SilverStripe\ORM\Versioning\Versioned;
|
||
|
|
||
|
/**
|
||
|
* @mixin Versioned
|
||
|
*/
|
||
|
class BaseObject extends DataObject implements TestOnly
|
||
|
{
|
||
|
use Permissions;
|
||
|
|
||
|
private static $table_name = 'ChangeSetTest_Base';
|
||
|
|
||
|
private static $db = [
|
||
|
'Foo' => 'Int',
|
||
|
];
|
||
|
|
||
|
private static $has_many = [
|
||
|
'Mids' => MidObject::class,
|
||
|
];
|
||
|
|
||
|
private static $owns = [
|
||
|
'Mids',
|
||
|
];
|
||
|
|
||
|
private static $extensions = [
|
||
|
Versioned::class,
|
||
|
];
|
||
|
}
|