2017-04-21 03:18:37 +02:00
|
|
|
<?php
|
|
|
|
|
2017-04-26 12:52:20 +02:00
|
|
|
namespace SilverStripe\FullTextSearch\Tests\SolrIndexVersionedTest;
|
2017-04-21 03:18:37 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
*/
|
2017-11-14 21:48:52 +01:00
|
|
|
class SolrIndexVersionedTest_Object extends DataObject implements TestOnly
|
|
|
|
{
|
2017-04-21 03:18:37 +02:00
|
|
|
|
2017-04-26 12:52:20 +02:00
|
|
|
private static $table_name = 'SolrIndexVersionedTest_Object';
|
|
|
|
|
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
|
|
|
}
|