2017-07-28 21:02:29 +02:00
|
|
|
<?php
|
|
|
|
|
2017-08-09 04:53:38 +02:00
|
|
|
namespace SilverStripe\CMS\Tests\Model;
|
2017-08-09 03:25:12 +02:00
|
|
|
|
2017-07-28 21:02:29 +02:00
|
|
|
use SilverStripe\CMS\Model\SiteTree;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
|
|
use SilverStripe\ORM\DataObject;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class SiteTreeTest_DataObject
|
|
|
|
*
|
|
|
|
* @property string $Title
|
|
|
|
* @method Pages[]|ManyManyList $Pages
|
|
|
|
*/
|
|
|
|
class SiteTreeTest_DataObject extends DataObject implements TestOnly
|
|
|
|
{
|
2017-08-09 04:53:38 +02:00
|
|
|
private static $table_name = 'SiteTreeTest_DataObject';
|
|
|
|
|
2017-07-28 21:02:29 +02:00
|
|
|
/**
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
private static $db = [
|
|
|
|
'Title' => 'Varchar',
|
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
private static $many_many = [
|
|
|
|
'Pages' => SiteTree::class,
|
|
|
|
];
|
|
|
|
}
|