silverstripe-framework/tests/php/ORM/DataExtensionTest/RelatedObject.php
2020-04-20 18:58:09 +01:00

21 lines
435 B
PHP

<?php
namespace SilverStripe\ORM\Tests\DataExtensionTest;
use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\DataObject;
class RelatedObject extends DataObject implements TestOnly
{
private static $table_name = 'DataExtensionTest_RelatedObject';
private static $db = [
"FieldOne" => "Varchar",
"FieldTwo" => "Varchar"
];
private static $has_one = [
"Contact" => TestMember::class
];
}