2017-04-21 13:18:37 +12:00
|
|
|
<?php
|
|
|
|
|
2017-04-26 22:52:20 +12:00
|
|
|
namespace SilverStripe\FullTextSearch\Tests\SolrIndexVersionedTest;
|
2017-04-21 13:18:37 +12:00
|
|
|
|
|
|
|
use SilverStripe\ORM\DataObject;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
2017-04-21 14:14:30 +12:00
|
|
|
use SilverStripe\Versioned\Versioned;
|
2017-04-21 13:18:37 +12:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Non-sitetree versioned dataobject
|
|
|
|
*/
|
2017-11-15 09:48:52 +13:00
|
|
|
class SolrIndexVersionedTest_Object extends DataObject implements TestOnly
|
|
|
|
{
|
2017-04-21 13:18:37 +12:00
|
|
|
|
2017-04-26 22:52:20 +12:00
|
|
|
private static $table_name = 'SolrIndexVersionedTest_Object';
|
|
|
|
|
2017-04-21 14:14:30 +12:00
|
|
|
private static $extensions = [
|
|
|
|
Versioned::class
|
|
|
|
];
|
2017-04-21 13:18:37 +12:00
|
|
|
|
2017-04-21 14:14:30 +12:00
|
|
|
private static $db = [
|
2017-04-21 13:18:37 +12:00
|
|
|
'Title' => 'Varchar',
|
|
|
|
'Content' => 'Text',
|
|
|
|
'TestText' => 'Varchar',
|
2017-04-21 14:14:30 +12:00
|
|
|
];
|
2017-04-21 13:18:37 +12:00
|
|
|
}
|