silverstripe-framework/tests/php/ORM/Search/SearchContextTest/NoSearchableFields.php
Guy Sartorelli 11595952f4
NEW Search across multiple searchable fields by default (#10382)
* NEW Search across multiple searchable fields by default

* ENH Split search query and search each term separately.
2022-08-01 12:19:02 +12:00

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',
];
}