silverstripe-framework/tests/php/ORM/RelatedDataServiceTest/ThroughObjectPolymorphic.php

16 lines
413 B
PHP
Raw Normal View History

2020-10-28 21:29:26 +01:00
<?php
namespace SilverStripe\ORM\Tests\RelatedDataServiceTest;
use SilverStripe\ORM\DataObject;
class ThroughObjectPolymorphic extends Node
{
private static $table_name = 'TestOnly_RelatedDataServiceTest_ThroughObjectPolymorphic';
private static $has_one = [
'Parent' => DataObject::class, // Will create a ParentID column + ParentColumn Enum column
'NodeObj' => Node::class,
];
}