mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
26 lines
546 B
PHP
26 lines
546 B
PHP
<?php
|
|
|
|
namespace SilverStripe\ORM\Tests\VersionableExtensionsTest;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
use SilverStripe\ORM\DataObject;
|
|
use SilverStripe\ORM\Versioning\Versioned;
|
|
|
|
class TestObject extends DataObject implements TestOnly
|
|
{
|
|
private static $table_name = 'VersionableExtensionsTest_DataObject';
|
|
|
|
private static $db = array(
|
|
'Title' => 'Varchar'
|
|
);
|
|
|
|
private static $extensions = [
|
|
Versioned::class,
|
|
TestExtension::class,
|
|
];
|
|
|
|
private static $versionableExtensions = [
|
|
TestExtension::class => ['test1', 'test2', 'test3']
|
|
];
|
|
}
|