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

35 lines
619 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 MidObject extends DataObject implements TestOnly
{
use Permissions;
2016-10-14 03:30:05 +02:00
private static $table_name = 'ChangeSetTest_Mid';
2016-10-14 03:30:05 +02:00
private static $db = [
'Bar' => 'Int',
];
2016-10-14 03:30:05 +02:00
private static $has_one = [
'Base' => BaseObject::class,
'End' => EndObject::class,
];
2016-10-14 03:30:05 +02:00
private static $owns = [
'End',
];
2016-10-14 03:30:05 +02:00
private static $extensions = [
Versioned::class,
];
2016-10-14 03:30:05 +02:00
}