silverstripe-framework/tests/php/ORM/ChangeSetItemTest/VersionedObject.php

28 lines
471 B
PHP
Raw Normal View History

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