2017-06-22 07:15:17 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace SilverStripe\TagField\Tests\Stub;
|
|
|
|
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
|
|
use SilverStripe\ORM\DataObject;
|
|
|
|
use SilverStripe\TagField\Tests\Stub\TagFieldTestBlogTag;
|
|
|
|
|
|
|
|
class TagFieldTestBlogPost extends DataObject implements TestOnly
|
|
|
|
{
|
|
|
|
private static $table_name = 'TagFieldTestBlogPost';
|
|
|
|
|
|
|
|
private static $db = [
|
|
|
|
'Title' => 'Text',
|
|
|
|
'Content' => 'Text'
|
|
|
|
];
|
|
|
|
|
|
|
|
private static $many_many = [
|
|
|
|
'Tags' => TagFieldTestBlogTag::class
|
|
|
|
];
|
2022-06-07 03:00:12 +02:00
|
|
|
|
|
|
|
private static $has_one = [
|
|
|
|
'PrimaryTag' => TagFieldTestBlogTag::class
|
|
|
|
];
|
2017-06-22 07:15:17 +02:00
|
|
|
}
|