2016-10-14 03:30:05 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace SilverStripe\ORM\Tests\ChangeSetItemTest;
|
|
|
|
|
2017-02-21 21:09:20 +01:00
|
|
|
use SilverStripe\Dev\TestOnly;
|
2016-10-14 03:30:05 +02:00
|
|
|
use SilverStripe\ORM\DataObject;
|
|
|
|
use SilverStripe\ORM\Versioning\Versioned;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @mixin Versioned
|
|
|
|
*/
|
2017-02-21 21:09:20 +01:00
|
|
|
class VersionedObject extends DataObject implements TestOnly
|
2016-10-14 03:30:05 +02:00
|
|
|
{
|
2016-12-16 05:34:21 +01:00
|
|
|
private static $table_name = 'ChangeSetItemTest_Versioned';
|
2016-10-14 03:30:05 +02:00
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
private static $db = [
|
|
|
|
'Foo' => 'Int'
|
|
|
|
];
|
2016-10-14 03:30:05 +02:00
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
private static $extensions = [
|
|
|
|
Versioned::class
|
|
|
|
];
|
2016-10-14 03:30:05 +02:00
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
function canEdit($member = null)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
2016-10-14 03:30:05 +02:00
|
|
|
}
|