mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
11595952f4
* NEW Search across multiple searchable fields by default * ENH Split search query and search each term separately.
30 lines
678 B
PHP
30 lines
678 B
PHP
<?php
|
|
|
|
namespace SilverStripe\ORM\Tests\Search\SearchContextTest;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
use SilverStripe\ORM\DataObject;
|
|
|
|
class NoSearchableFields extends DataObject implements TestOnly
|
|
{
|
|
private static $table_name = 'SearchContextTest_NoSearchableFields';
|
|
|
|
private static $db = [
|
|
'Name' => 'Varchar',
|
|
'Email' => 'Varchar',
|
|
'HairColor' => 'Varchar',
|
|
'EyeColor' => 'Varchar'
|
|
];
|
|
|
|
private static $has_one = [
|
|
'Customer' => Customer::class,
|
|
];
|
|
|
|
private static $summary_fields = [
|
|
'Name' => 'Custom Label',
|
|
'Customer.FirstName' => 'Customer',
|
|
'HairColor',
|
|
'EyeColor',
|
|
];
|
|
}
|