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()
|
|
|
|
*/
|
2018-01-30 06:28:28 +01:00
|
|
|
class Dingo extends DataObject implements TestOnly
|
2016-10-11 06:50:19 +02:00
|
|
|
{
|
2018-01-30 06:28:28 +01:00
|
|
|
private static $table_name = 'DataObjectDuplicateTest_Dingo';
|
|
|
|
|
|
|
|
private static $cascade_duplicates = [
|
|
|
|
'Children',
|
|
|
|
];
|
2017-05-19 04:07:45 +02:00
|
|
|
|
2016-10-11 06:50:19 +02:00
|
|
|
private static $db = [
|
|
|
|
'Title' => 'Varchar',
|
|
|
|
];
|
|
|
|
|
|
|
|
private static $many_many = [
|
2018-01-30 06:28:28 +01:00
|
|
|
'Children' => Dingo::class,
|
2016-10-11 06:50:19 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
private static $belongs_many_many = [
|
2018-01-30 06:28:28 +01:00
|
|
|
'Parents' => Dingo::class,
|
2016-10-11 06:50:19 +02:00
|
|
|
];
|
|
|
|
}
|