mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 17:05:39 +02:00
24 lines
496 B
PHP
24 lines
496 B
PHP
|
<?php
|
||
|
|
||
|
namespace Symbiote\GridFieldExtensions\Tests\Stub;
|
||
|
|
||
|
use SilverStripe\ORM\DataObject;
|
||
|
use SilverStripe\Dev\TestOnly;
|
||
|
|
||
|
class ThroughDefiner extends DataObject implements TestOnly
|
||
|
{
|
||
|
private static $table_name = 'ManyThrough';
|
||
|
|
||
|
private static $many_many = [
|
||
|
'Belongings' => [
|
||
|
'through' => ThroughIntermediary::class,
|
||
|
'from' => 'Defining',
|
||
|
'to' => 'Belonging',
|
||
|
]
|
||
|
];
|
||
|
|
||
|
private static $owns = [
|
||
|
'Belongings'
|
||
|
];
|
||
|
}
|