silverstripe-framework/tests/php/ORM/DataExtensionTest/RelatedObject.php

21 lines
435 B
PHP
Raw Normal View History

2016-10-14 03:30:05 +02:00
<?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';
2016-10-14 03:30:05 +02:00
private static $db = [
"FieldOne" => "Varchar",
"FieldTwo" => "Varchar"
];
2016-10-14 03:30:05 +02:00
private static $has_one = [
"Contact" => TestMember::class
];
2016-10-14 03:30:05 +02:00
}