silverstripe-framework/tests/php/ORM/RelatedDataServiceTest/ThroughObjectPolymorphic.php
2020-10-29 09:29:26 +13:00

16 lines
413 B
PHP

<?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,
];
}