2016-10-14 03:30:05 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace SilverStripe\Forms\Tests\FormTest;
|
|
|
|
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
|
|
use SilverStripe\ORM\DataObject;
|
2016-11-23 06:09:10 +01:00
|
|
|
use SilverStripe\ORM\ManyManyList;
|
2016-10-14 03:30:05 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @skipUpgrade
|
2016-11-23 06:09:10 +01:00
|
|
|
*
|
|
|
|
* @method ManyManyList Players()
|
2016-10-14 03:30:05 +02:00
|
|
|
*/
|
|
|
|
class Team extends DataObject implements TestOnly
|
|
|
|
{
|
|
|
|
private static $table_name = 'FormTest_Team';
|
|
|
|
|
|
|
|
private static $db = array(
|
|
|
|
'Name' => 'Varchar',
|
|
|
|
'Region' => 'Varchar',
|
|
|
|
);
|
|
|
|
|
|
|
|
private static $many_many = array(
|
|
|
|
'Players' => Player::class
|
|
|
|
);
|
|
|
|
}
|