mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
29 lines
573 B
PHP
29 lines
573 B
PHP
<?php
|
|
|
|
namespace SilverStripe\ORM\Tests\DataObjectTest;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
|
|
class SubTeam extends Team implements TestOnly
|
|
{
|
|
private static $table_name = 'DataObjectTest_SubTeam';
|
|
|
|
private static $db = [
|
|
'SubclassDatabaseField' => 'Varchar'
|
|
];
|
|
|
|
private static $has_one = [
|
|
"ParentTeam" => Team::class,
|
|
];
|
|
|
|
private static $many_many = [
|
|
'FormerPlayers' => Player::class
|
|
];
|
|
|
|
private static $many_many_extraFields = [
|
|
'FormerPlayers' => [
|
|
'Position' => 'Varchar(100)'
|
|
]
|
|
];
|
|
}
|