silverstripe-framework/tests/php/ORM/ChangeSetTest/BaseObject.php

34 lines
587 B
PHP
Raw Normal View History

2016-10-14 03:30:05 +02:00
<?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;
2016-10-14 03:30:05 +02:00
private static $table_name = 'ChangeSetTest_Base';
2016-10-14 03:30:05 +02:00
private static $db = [
'Foo' => 'Int',
];
2016-10-14 03:30:05 +02:00
private static $has_many = [
'Mids' => MidObject::class,
];
2016-10-14 03:30:05 +02:00
private static $owns = [
'Mids',
];
2016-10-14 03:30:05 +02:00
private static $extensions = [
Versioned::class,
];
2016-10-14 03:30:05 +02:00
}