mirror of
https://github.com/silverstripe/silverstripe-tagfield
synced 2024-10-22 09:05:32 +00:00
32 lines
714 B
PHP
32 lines
714 B
PHP
<?php
|
|
|
|
namespace SilverStripe\TagField\Tests\Stub;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
use SilverStripe\ORM\DataObject;
|
|
use SilverStripe\ORM\ManyManyList;
|
|
|
|
/**
|
|
* @property string $Content
|
|
* @property int $PrimaryTagID
|
|
* @method TagFieldTestBlogTag PrimaryTag()
|
|
* @method ManyManyList|TagFieldTestBlogTag[] Tags()
|
|
*/
|
|
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
|
|
];
|
|
|
|
private static $has_one = [
|
|
'PrimaryTag' => TagFieldTestBlogTag::class
|
|
];
|
|
}
|