mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
23 lines
475 B
PHP
23 lines
475 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";
|
|
}
|
|
}
|