silverstripe-framework/tests/php/ORM/DataObjectTest/Team_Extension.php
2016-11-23 19:25:12 +13:00

24 lines
437 B
PHP

<?php
namespace SilverStripe\ORM\Tests\DataObjectTest;
use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\DataExtension;
class Team_Extension extends DataExtension implements TestOnly
{
private static $db = array(
'ExtendedDatabaseField' => 'Varchar'
);
private static $has_one = array(
'ExtendedHasOneRelationship' => Player::class
);
public function getExtendedDynamicField()
{
return "extended dynamic field";
}
}