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 Frog 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_Frog';
|
2017-05-19 04:07:45 +02:00
|
|
|
|
2016-10-11 06:50:19 +02:00
|
|
|
private static $db = [
|
|
|
|
'Title' => 'Varchar',
|
|
|
|
];
|
|
|
|
|
2018-01-30 06:28:28 +01:00
|
|
|
private static $belongs_to = [
|
|
|
|
'Parent' => Elephant::class,
|
2016-10-11 06:50:19 +02:00
|
|
|
];
|
|
|
|
}
|