mirror of
https://github.com/silverstripe/silverstripe-tagfield
synced 2024-10-22 11:05:32 +02:00
527c5b2224
* doc: add note about `setTitleField` (Fixes #153) * NEW Add support for saving tag value into has_one components FIX Value not shown if isMultiple is false (#195) * fix: don't default to ID column as pgsql throws an error if comparing string value
26 lines
572 B
PHP
26 lines
572 B
PHP
<?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
|
|
];
|
|
|
|
private static $has_one = [
|
|
'PrimaryTag' => TagFieldTestBlogTag::class
|
|
];
|
|
}
|