silverstripe-framework/tests/php/ORM/DataObjectTest/Team_Extension.php

23 lines
475 B
PHP
Raw Normal View History

2016-10-14 03:30:05 +02:00
<?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'
);
2016-10-14 03:30:05 +02:00
private static $has_one = array(
'ExtendedHasOneRelationship' => Player::class
);
2016-10-14 03:30:05 +02:00
public function getExtendedDynamicField()
{
return "extended dynamic field";
}
2016-10-14 03:30:05 +02:00
}