mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-05 17:21:16 +02:00
28 lines
659 B
PHP
28 lines
659 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Forms\Tests\GridField\GridFieldFilterHeaderTest;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
use SilverStripe\ORM\DataObject;
|
|
|
|
class Team extends DataObject implements TestOnly
|
|
{
|
|
private static $table_name = 'GridFieldFilterHeaderTest_Team';
|
|
|
|
private static $summary_fields = array(
|
|
'Name' => 'Name',
|
|
'City.Initial' => 'City',
|
|
'Cheerleader.Hat.Colour' => 'Cheerleader Hat'
|
|
);
|
|
|
|
private static $db = array(
|
|
'Name' => 'Varchar',
|
|
'City' => 'Varchar'
|
|
);
|
|
|
|
private static $has_one = array(
|
|
'Cheerleader' => Cheerleader::class,
|
|
'CheerleadersMom' => Mom::class
|
|
);
|
|
}
|