2016-10-11 06:50:19 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
namespace SilverStripe\ORM\Tests\DataObjectDuplicationTest;
|
|
|
|
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
|
|
use SilverStripe\ORM\DataObject;
|
|
|
|
use SilverStripe\ORM\ManyManyList;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method ManyManyList Children()
|
|
|
|
* @method ManyManyList Parents()
|
|
|
|
*/
|
|
|
|
class Class4 extends DataObject implements TestOnly
|
|
|
|
{
|
2017-05-19 04:07:45 +02:00
|
|
|
private static $table_name = 'DataObjectDuplicateTest_Class4';
|
|
|
|
|
2016-10-11 06:50:19 +02:00
|
|
|
private static $db = [
|
|
|
|
'Title' => 'Varchar',
|
|
|
|
];
|
|
|
|
|
|
|
|
private static $many_many = [
|
|
|
|
'Children' => Class4::class,
|
|
|
|
];
|
|
|
|
|
|
|
|
private static $belongs_many_many = [
|
|
|
|
'Parents' => Class4::class,
|
|
|
|
];
|
|
|
|
}
|