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

19 lines
426 B
PHP

<?php
namespace SilverStripe\ORM\Tests\RelatedDataServiceTest;
class SelfReferentialNode extends Node
{
private static $table_name = 'TestOnly_RelatedDataServiceTest_SelfReferentialNode';
private static $has_one = [
'HOA' => Node::class,
'HOB' => SelfReferentialNode::class
];
private static $many_many = [
'MMA' => Node::class,
'MMB' => SelfReferentialNode::class
];
}