mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 17:05:39 +02:00
20 lines
446 B
PHP
20 lines
446 B
PHP
|
<?php
|
||
|
|
||
|
namespace Symbiote\GridFieldExtensions\Tests\Stub;
|
||
|
|
||
|
use SilverStripe\Dev\TestOnly;
|
||
|
use SilverStripe\ORM\DataObject;
|
||
|
|
||
|
class PolymorphM2MParent extends DataObject implements TestOnly
|
||
|
{
|
||
|
private static $table_name = 'TableOnly_PolymorphM2MParent';
|
||
|
|
||
|
private static $many_many = [
|
||
|
'Children' => [
|
||
|
'through' => PolymorphM2MMapper::class,
|
||
|
'from' => 'Parent',
|
||
|
'to' => 'Child',
|
||
|
]
|
||
|
];
|
||
|
}
|