silverstripe-framework/tests/php/Forms/FormTest/Team.php

27 lines
500 B
PHP
Raw Normal View History

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