2017-04-21 03:18:37 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace SilverStripe\FullTextSearch\Tests\SolrVersionedTest;
|
|
|
|
|
|
|
|
use SilverStripe\ORM\DataObject;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
2017-04-21 04:14:30 +02:00
|
|
|
use SilverStripe\Versioned\Versioned;
|
2017-04-21 03:18:37 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Non-sitetree versioned dataobject
|
|
|
|
*/
|
|
|
|
class SolrIndexVersionedTest_Object extends DataObject implements TestOnly {
|
|
|
|
|
2017-04-21 04:14:30 +02:00
|
|
|
private static $extensions = [
|
|
|
|
Versioned::class
|
|
|
|
];
|
2017-04-21 03:18:37 +02:00
|
|
|
|
2017-04-21 04:14:30 +02:00
|
|
|
private static $db = [
|
2017-04-21 03:18:37 +02:00
|
|
|
'Title' => 'Varchar',
|
|
|
|
'Content' => 'Text',
|
|
|
|
'TestText' => 'Varchar',
|
2017-04-21 04:14:30 +02:00
|
|
|
];
|
2017-04-21 03:18:37 +02:00
|
|
|
}
|