mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
20 lines
598 B
PHP
20 lines
598 B
PHP
|
<?php
|
||
|
|
||
|
namespace SilverStripe\ORM\Tests\RelatedDataServiceTest;
|
||
|
|
||
|
class ManyManyThroughNoBelongs extends Node
|
||
|
{
|
||
|
private static $table_name = 'TestOnly_RelatedDataServiceTest_ManyManyThroughNoBelongs';
|
||
|
|
||
|
private static $many_many = [
|
||
|
'Hubs' => [
|
||
|
'through' => ThroughObjectMMTNB::class,
|
||
|
// note: you cannot swap from/to around, Silverstripe MMT expects 'from' to be
|
||
|
// the type of class that defines the many_many_through relationship
|
||
|
// i.e. this class
|
||
|
'from' => 'MMTNBObj',
|
||
|
'to' => 'HubObj',
|
||
|
],
|
||
|
];
|
||
|
}
|