silverstripe-framework/tests/php/ORM/ChangeSetTest/BaseObject.php
2016-12-19 16:08:19 +13:00

34 lines
587 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,
];
}